This commit is contained in:
2020-09-01 03:47:13 +08:00
parent 8f7c7cfeb1
commit ca699b01dd
+1 -8
View File
@@ -87,14 +87,7 @@ class Annotation extends BaseAnnotation
if (!$this->isLegitimate($events)) {
continue;
}
$_key = $this->getName($annotation, $events);
if (empty($events[2])) {
$this->push($_key, [$controller, $methodName]);
} else {
$handler = $this->createHandler($controller, $methodName, $events[2]);
$this->push($_key, $handler, [request(), [$controller, $methodName]]);
}
$this->push($this->getName($annotation, $events), [$controller, $methodName]);
}
}
}