This commit is contained in:
2020-08-31 23:32:25 +08:00
parent ab9a00c19a
commit d3e5531189
3 changed files with 17 additions and 2 deletions
+2 -2
View File
@@ -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.');
}
+11
View File
@@ -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];
}
}
@@ -36,6 +36,10 @@ class Websocket extends Annotation
}
/**
* @param $events
* @return bool|void
*/
public function isLegitimate($events)
{
return true;