feat : Decorator Aop
This commit is contained in:
@@ -26,6 +26,7 @@ class DecoratorController extends AbstractController
|
||||
}
|
||||
|
||||
/**
|
||||
* container 装饰器(依赖注入)
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: 'container', methods: 'GET')]
|
||||
@@ -34,7 +35,12 @@ class DecoratorController extends AbstractController
|
||||
return (new ContainerService)->handle();
|
||||
}
|
||||
|
||||
public function aop()
|
||||
/**
|
||||
* aop 装饰器(切面)
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: 'aop', methods: 'GET')]
|
||||
public function aop(): array
|
||||
{
|
||||
return (new AopService)->handle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user