This commit is contained in:
2023-04-25 16:09:20 +08:00
parent 764a7f4eb7
commit 6b2a71c6af
+6 -4
View File
@@ -44,11 +44,13 @@ class Scanner extends Component
continue;
}
$reflect = $container->getReflectionClass($class);
$data = $reflect->getAttributes(Skip::class);
if (count($data) > 0) {
continue;
if ($reflect->isInstantiable()) {
$data = $reflect->getAttributes(Skip::class);
if (count($data) > 0) {
continue;
}
$container->parse($class);
}
$container->parse($class);
}
}