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