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; continue;
} }
$reflect = $container->getReflectionClass($class); $reflect = $container->getReflectionClass($class);
$data = $reflect->getAttributes(Skip::class); if ($reflect->isInstantiable()) {
if (count($data) > 0) { $data = $reflect->getAttributes(Skip::class);
continue; if (count($data) > 0) {
continue;
}
$container->parse($class);
} }
$container->parse($class);
} }
} }