This commit is contained in:
2020-09-15 20:18:37 +08:00
parent e6ebd6854a
commit 6a8d10b4e9
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -349,7 +349,6 @@ class Snowflake
public static function autoload($className)
{
if (!isset(static::$_autoload[$className])) {
var_dump($className);
return;
}
$file = static::$_autoload[$className];
+1 -1
View File
@@ -73,7 +73,7 @@ if (!function_exists('instance_load')) {
function instance_load()
{
$content = json_decode(file_get_contents(__DIR__ . '/../composer.json'), true);
$content = json_decode(file_get_contents(__DIR__ . '/composer.json'), true);
if (isset($content['autoload']) && isset($content['autoload']['psr-4'])) {
$psr4 = $content['autoload']['psr-4'];
foreach ($psr4 as $namespace => $dirname) {