This commit is contained in:
2021-03-23 17:22:51 +08:00
parent 0ff8b7e6fa
commit a005b953c3
+2 -2
View File
@@ -222,8 +222,8 @@ class Loader extends BaseObject
}
$annotations = $this->_classes[$className];
if (isset($_array['target']) && !empty($_array['target'])) {
foreach ($_array['target'] as $value) {
if (isset($annotations['target']) && !empty($annotations['target'])) {
foreach ($annotations['target'] as $value) {
$value->execute([$annotations['handler']]);
}
}