改名
This commit is contained in:
@@ -298,12 +298,12 @@ class Node extends HttpService
|
|||||||
*/
|
*/
|
||||||
private function annotationInject(string $className, string $action): static
|
private function annotationInject(string $className, string $action): static
|
||||||
{
|
{
|
||||||
$attributes = Snowflake::app()->getAttributes();
|
$annotation = annotation()->getMethods($className, $action);
|
||||||
$annotation = $attributes->getMethods($className, $action);
|
|
||||||
if (empty($annotation)) {
|
if (empty($annotation)) {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
foreach ($annotation as $name => $attribute) {
|
foreach ($annotation as $name => $attribute) {
|
||||||
|
var_dump(get_class($attribute));
|
||||||
if ($attribute instanceof \Annotation\Route\Interceptor) {
|
if ($attribute instanceof \Annotation\Route\Interceptor) {
|
||||||
$this->addInterceptor($attribute->interceptor);
|
$this->addInterceptor($attribute->interceptor);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user