diff --git a/system/Annotation/Annotation.php b/system/Annotation/Annotation.php index 43190520..88b7dd99 100644 --- a/system/Annotation/Annotation.php +++ b/system/Annotation/Annotation.php @@ -134,7 +134,7 @@ class Annotation extends BaseAnnotation */ public function isLegitimate($events) { - throw new Exception('Undefined analytic function.'); + throw new Exception('Undefined analytic function isLegitimate.'); } @@ -145,7 +145,7 @@ class Annotation extends BaseAnnotation */ public function getName($function, $events) { - throw new Exception('Undefined analytic function.'); + throw new Exception('Undefined analytic function getName.'); } diff --git a/system/Annotation/Definition/Http.php b/system/Annotation/Definition/Http.php index 33eafa8f..992a1463 100644 --- a/system/Annotation/Definition/Http.php +++ b/system/Annotation/Definition/Http.php @@ -55,4 +55,15 @@ class Http extends Annotation } + /** + * @param $controller + * @param $methodName + * @param $events + * @return array|void + */ + public function createHandler($controller, $methodName, $events) + { + return [$controller, $methodName]; + } + } diff --git a/system/Annotation/Definition/Websocket.php b/system/Annotation/Definition/Websocket.php index e75a2cc3..940ba203 100644 --- a/system/Annotation/Definition/Websocket.php +++ b/system/Annotation/Definition/Websocket.php @@ -36,6 +36,10 @@ class Websocket extends Annotation } + /** + * @param $events + * @return bool|void + */ public function isLegitimate($events) { return true;