This commit is contained in:
as2252258@163.com
2021-05-02 04:34:12 +08:00
parent ed570b3e3d
commit fa0c4bd5dd
+1 -1
View File
@@ -235,13 +235,13 @@ class Loader extends BaseObject
$path = '/' . trim($path, '/'); $path = '/' . trim($path, '/');
foreach ($this->_directory as $key => $_path) { foreach ($this->_directory as $key => $_path) {
$key = '/' . trim($key, '/'); $key = '/' . trim($key, '/');
var_export($key);
if (!str_starts_with($key, $path)) { if (!str_starts_with($key, $path)) {
continue; continue;
} }
if (in_array($key, $outPath)) { if (in_array($key, $outPath)) {
continue; continue;
} }
var_export($_path);
$this->execute($_path); $this->execute($_path);
} }
} catch (Throwable $exception) { } catch (Throwable $exception) {