modify
This commit is contained in:
+11
-11
@@ -405,19 +405,19 @@ class Loader extends BaseObject
|
|||||||
foreach ($annotations['target'] ?? [] as $value) {
|
foreach ($annotations['target'] ?? [] as $value) {
|
||||||
$value->execute([$annotations['handler']]);
|
$value->execute([$annotations['handler']]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$_className = get_class($annotations['handler']);
|
||||||
foreach ($annotations['methods'] as $name => $attribute) {
|
foreach ($annotations['methods'] as $name => $attribute) {
|
||||||
foreach ($attribute as $value) {
|
foreach ($attribute as $value) {
|
||||||
$value->execute([$annotations['handler'], $name]);
|
if ($value instanceof Relation) {
|
||||||
//
|
$annotation->addRelate($_className, $value->name, $name);
|
||||||
// if ($value instanceof Relation) {
|
} else if ($value instanceof Get) {
|
||||||
// $annotation->addRelate($annotations['handler'], $value->name, $name);
|
$annotation->addGets($_className, $value->name, $name);
|
||||||
// } else if ($value instanceof Get) {
|
} else if ($value instanceof Set) {
|
||||||
// $annotation->addGets($annotations['handler'], $value->name, $name);
|
$annotation->addSets($_className, $value->name, $name);
|
||||||
// } else if ($value instanceof Set) {
|
} else {
|
||||||
// $annotation->addSets($annotations['handler'], $value->name, $name);
|
$value->execute([$annotations['handler'], $name]);
|
||||||
// } else {
|
}
|
||||||
// $value->execute([$class, $name]);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user