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