改名
This commit is contained in:
@@ -44,7 +44,7 @@ class Application extends BaseApplication
|
||||
*/
|
||||
public function __construct(array $config = [])
|
||||
{
|
||||
// instance_load();
|
||||
instance_load();
|
||||
parent::__construct($config);
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -43,8 +43,7 @@ if (!function_exists('loadByDir')) {
|
||||
*/
|
||||
function classAutoload($namespace, $dirname)
|
||||
{
|
||||
$path = rtrim(__DIR__ . '/' . $dirname, '/');
|
||||
foreach (glob($path . '/*') as $value) {
|
||||
foreach (glob(rtrim($dirname, '/') . '/*') as $value) {
|
||||
$value = realpath($value);
|
||||
if (is_dir($value)) {
|
||||
classAutoload($namespace, $value);
|
||||
|
||||
Reference in New Issue
Block a user