From 3d7860b88876568bbf919bfca562690d41444a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 16 Sep 2020 01:53:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Application.php | 2 +- System/Snowflake.php | 33 --------------------------------- 2 files changed, 1 insertion(+), 34 deletions(-) diff --git a/System/Application.php b/System/Application.php index ce5ed1b3..56cd1006 100644 --- a/System/Application.php +++ b/System/Application.php @@ -44,7 +44,7 @@ class Application extends BaseApplication */ public function __construct(array $config = []) { - instance_load(); +// instance_load(); parent::__construct($config); } diff --git a/System/Snowflake.php b/System/Snowflake.php index 8f6a5f7d..397d349b 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -326,38 +326,5 @@ class Snowflake } - private static $_autoload = []; - - - /** - * @param $class - * @param $file - */ - public static function setAutoload($class, $file) - { - if (isset(static::$_autoload[$class])) { - return; - } - static::$_autoload[$class] = $file; - include_once "$file"; - } - - - /** - * @param $className - */ - public static function autoload($className) - { - if (!isset(static::$_autoload[$className])) { - var_dump($className); - return; - } -// $file = static::$_autoload[$className]; -// include_once "$file"; - } - - } - -spl_autoload_register([Snowflake::class, 'autoload'], true, true); Snowflake::$container = new Container();