改名
This commit is contained in:
@@ -140,8 +140,6 @@ class Loader extends BaseObject
|
|||||||
$iterator = new DirectoryIterator($path->getRealPath());
|
$iterator = new DirectoryIterator($path->getRealPath());
|
||||||
$this->_scanDir($iterator, $namespace);
|
$this->_scanDir($iterator, $namespace);
|
||||||
|
|
||||||
var_dump(__LINE__ . '->' . rtrim($path->getRealPath(), '/'));
|
|
||||||
|
|
||||||
$this->_directory[rtrim($path->getRealPath(), '/')] = [];
|
$this->_directory[rtrim($path->getRealPath(), '/')] = [];
|
||||||
} else {
|
} else {
|
||||||
$this->readFile($path, $namespace);
|
$this->readFile($path, $namespace);
|
||||||
@@ -151,8 +149,6 @@ class Loader extends BaseObject
|
|||||||
|
|
||||||
$directory = implode('/', $array);
|
$directory = implode('/', $array);
|
||||||
|
|
||||||
var_dump(__LINE__ . '->' . $directory);
|
|
||||||
|
|
||||||
$this->_directory[$directory][] = $directory;
|
$this->_directory[$directory][] = $directory;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -234,11 +230,12 @@ class Loader extends BaseObject
|
|||||||
if (!isset($this->_directory[$path])) {
|
if (!isset($this->_directory[$path])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->execute($this->_directory[$path]);
|
foreach ($this->_directory[$path] as $key => $path) {
|
||||||
//
|
if (!str_starts_with($key, $path)) {
|
||||||
// foreach ($this->_directory[$path] as $file) {
|
continue;
|
||||||
// }
|
}
|
||||||
// $this->each($path, $outPath);
|
$this->execute($this->_directory[$path]);
|
||||||
|
}
|
||||||
} catch (Throwable $exception) {
|
} catch (Throwable $exception) {
|
||||||
$this->addError($exception, 'throwable');
|
$this->addError($exception, 'throwable');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user