qqq
This commit is contained in:
+2
-1
@@ -111,11 +111,12 @@ class Container implements ContainerInterface
|
|||||||
$object = $this->make($id);
|
$object = $this->make($id);
|
||||||
$methods = $this->getReflectionClass($id);
|
$methods = $this->getReflectionClass($id);
|
||||||
foreach ($methods->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
|
foreach ($methods->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
|
||||||
if ($method->isStatic()) {
|
if ($method->isStatic() || $method->getDeclaringClass()->getName() != $id) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$attributes = $method->getAttributes();
|
$attributes = $method->getAttributes();
|
||||||
foreach ($attributes as $attribute) {
|
foreach ($attributes as $attribute) {
|
||||||
|
var_dump($attribute->getName());
|
||||||
$attribute->newInstance()->dispatch($object, $method->getName());
|
$attribute->newInstance()->dispatch($object, $method->getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user