diff --git a/src/Annotate/Controller.php b/src/Annotate/Controller.php new file mode 100644 index 0000000..90cba01 --- /dev/null +++ b/src/Annotate/Controller.php @@ -0,0 +1,31 @@ +getReflectionClass($object::class); + foreach ($reflection->getMethods() as $method) { + $attributes = $method->getAttributes(); + foreach ($attributes as $attribute) { + if (!class_exists($attribute->getName())) { + continue; + } + $attribute->newInstance()->dispatch($object, $method->getName()); + } + } + + } + +}