Fixed inheritance.
This commit is contained in:
parent
8a5059c7ec
commit
bcc7e8066a
2 changed files with 3 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
0.2403.282016
|
||||
0.2403.282019
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
namespace Index\Http\Routing;
|
||||
|
||||
use Attribute;
|
||||
use ReflectionAttribute;
|
||||
use ReflectionObject;
|
||||
|
||||
/**
|
||||
|
@ -35,7 +36,7 @@ class HandlerAttribute {
|
|||
$methodInfos = $objectInfo->getMethods();
|
||||
|
||||
foreach($methodInfos as $methodInfo) {
|
||||
$attrInfos = $methodInfo->getAttributes(HandlerAttribute::class);
|
||||
$attrInfos = $methodInfo->getAttributes(HandlerAttribute::class, ReflectionAttribute::IS_INSTANCEOF);
|
||||
|
||||
foreach($attrInfos as $attrInfo) {
|
||||
$handlerInfo = $attrInfo->newInstance();
|
||||
|
|
Loading…
Reference in a new issue