2017-11-13 19:44:58 +05:30
|
|
|
<?php
|
|
|
|
namespace api\aop;
|
|
|
|
|
|
|
|
use api\aop\aspects;
|
2018-01-02 21:59:34 +05:30
|
|
|
use Doctrine\Common\Annotations\AnnotationReader;
|
2017-11-13 19:44:58 +05:30
|
|
|
use Go\Core\AspectContainer;
|
|
|
|
use Go\Core\AspectKernel as BaseAspectKernel;
|
|
|
|
|
|
|
|
class AspectKernel extends BaseAspectKernel {
|
|
|
|
|
|
|
|
protected function configureAop(AspectContainer $container): void {
|
2018-01-02 21:59:34 +05:30
|
|
|
AnnotationReader::addGlobalIgnoredName('url');
|
|
|
|
|
2017-11-14 23:04:05 +05:30
|
|
|
$container->registerAspect(new aspects\MockDataAspect());
|
2017-11-19 21:02:51 +05:30
|
|
|
$container->registerAspect(new aspects\CollectMetricsAspect());
|
2017-11-13 19:44:58 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
}
|