modify
This commit is contained in:
@@ -356,13 +356,9 @@ class Loader extends BaseObject
|
|||||||
if ($annotations === null) {
|
if ($annotations === null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
foreach ($annotations['target'] ?? [] as $value) {
|
||||||
if (isset($annotations['target']) && !empty($annotations['target'])) {
|
|
||||||
foreach ($annotations['target'] as $value) {
|
|
||||||
$value->execute([$annotations['handler']]);
|
$value->execute([$annotations['handler']]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($annotations['methods'] as $name => $attribute) {
|
foreach ($annotations['methods'] as $name => $attribute) {
|
||||||
foreach ($attribute as $value) {
|
foreach ($attribute as $value) {
|
||||||
if (!($value instanceof \Annotation\Attribute)) {
|
if (!($value instanceof \Annotation\Attribute)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user