变更
This commit is contained in:
@@ -35,8 +35,9 @@ class Scanner extends Component
|
|||||||
$container = Container::instance();
|
$container = Container::instance();
|
||||||
foreach ($this->files as $file) {
|
foreach ($this->files as $file) {
|
||||||
$class = $namespace . '\\' . $this->rename($file);
|
$class = $namespace . '\\' . $this->rename($file);
|
||||||
if (!file_exists($class)) {
|
if (file_exists($class)) {
|
||||||
throw new Exception('Please follow the PSR-4 specification to write code.' . $class);
|
error('Please follow the PSR-4 specification to write code.' . $class);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
$container->parse($class);
|
$container->parse($class);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user