eee
This commit is contained in:
+3
-1
@@ -100,12 +100,14 @@ class Scanner extends Component
|
|||||||
if (in_array(Skip::class, $attributes) || in_array(\Attribute::class, $attributes)) {
|
if (in_array(Skip::class, $attributes) || in_array(\Attribute::class, $attributes)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$object = $this->container->parse($class);
|
|
||||||
foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
|
foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
|
||||||
if ($method->isStatic() || $method->getDeclaringClass()->getName() != $class) {
|
if ($method->isStatic() || $method->getDeclaringClass()->getName() != $class) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$attributes = $method->getAttributes();
|
$attributes = $method->getAttributes();
|
||||||
|
if (count($attributes) > 0) {
|
||||||
|
$object = $this->container->parse($class);
|
||||||
|
}
|
||||||
foreach ($attributes as $attribute) {
|
foreach ($attributes as $attribute) {
|
||||||
if (!class_exists($attribute->getName())) {
|
if (!class_exists($attribute->getName())) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user