改名
This commit is contained in:
+10
-10
@@ -230,17 +230,17 @@ class Loader extends BaseObject
|
||||
public function loadByDirectory(string $path, string|array $outPath = '')
|
||||
{
|
||||
try {
|
||||
// $path = '/' . trim($path, '/');
|
||||
// foreach ($this->_directory as $key => $_path) {
|
||||
// $key = '/' . trim($key, '/');
|
||||
// if (!str_starts_with($key, $path)) {
|
||||
// continue;
|
||||
// }
|
||||
// if (in_array($key, $outPath)) continue;
|
||||
// $this->execute($_path);
|
||||
// }
|
||||
$path = '/' . trim($path, '/');
|
||||
foreach ($this->_directory as $key => $_path) {
|
||||
$key = '/' . trim($key, '/');
|
||||
if (!str_starts_with($key, $path)) {
|
||||
continue;
|
||||
}
|
||||
if (in_array($key, $outPath)) continue;
|
||||
$this->execute($_path);
|
||||
}
|
||||
|
||||
$this->each($path, $outPath);
|
||||
// $this->each($path, $outPath);
|
||||
} catch (Throwable $exception) {
|
||||
$this->addError($exception, 'throwable');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user