feat : Decorator Aop

This commit is contained in:
2025-09-06 23:53:15 +08:00
parent aaa394a2a7
commit dfbb4b73ae
9 changed files with 195 additions and 9 deletions

View File

@@ -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();
}