diff --git a/VERSION b/VERSION index 9631612..34a7134 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2403.282016 +0.2403.282019 diff --git a/src/Http/Routing/HandlerAttribute.php b/src/Http/Routing/HandlerAttribute.php index 9531669..120e682 100644 --- a/src/Http/Routing/HandlerAttribute.php +++ b/src/Http/Routing/HandlerAttribute.php @@ -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();