From dd3bba8df1f7b9985248dc3ccce4d071fcb338b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 15 Sep 2020 19:41:42 +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/Snowflake.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/System/Snowflake.php b/System/Snowflake.php index bdefadfb..ff2af964 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -325,6 +325,19 @@ class Snowflake return Snowflake::app()->server->getServer()->reload(); } + + /** + * @param $className + */ + public static function autoload($className) + { + + var_dump($className); + + } + + } Snowflake::$container = new Container(); +spl_autoload_register(['Snowflake\Snowflake::autoload'], true, true);