改名
This commit is contained in:
@@ -349,7 +349,6 @@ class Snowflake
|
|||||||
public static function autoload($className)
|
public static function autoload($className)
|
||||||
{
|
{
|
||||||
if (!isset(static::$_autoload[$className])) {
|
if (!isset(static::$_autoload[$className])) {
|
||||||
var_dump($className);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$file = static::$_autoload[$className];
|
$file = static::$_autoload[$className];
|
||||||
|
|||||||
+1
-1
@@ -73,7 +73,7 @@ if (!function_exists('instance_load')) {
|
|||||||
|
|
||||||
function 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'])) {
|
if (isset($content['autoload']) && isset($content['autoload']['psr-4'])) {
|
||||||
$psr4 = $content['autoload']['psr-4'];
|
$psr4 = $content['autoload']['psr-4'];
|
||||||
foreach ($psr4 as $namespace => $dirname) {
|
foreach ($psr4 as $namespace => $dirname) {
|
||||||
|
|||||||
Reference in New Issue
Block a user