Completed
Push — 1.x ( a98302...e42f79 )
by Alexander
07:32
created

AwesomeAspectKernel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 11
Metric Value
wmc 1
lcom 0
cbo 11
dl 0
loc 22
rs 10
1
<?php
2
/*
3
 * Go! AOP framework
4
 *
5
 * @copyright Copyright 2012, Lisachenko Alexander <[email protected]>
6
 *
7
 * This source file is subject to the license that is bundled
8
 * with this source code in the file LICENSE.
9
 */
10
11
namespace Demo\Aspect;
12
13
use Go\Core\AspectKernel;
14
use Go\Core\AspectContainer;
15
16
/**
17
 * Awesome Aspect Kernel class
18
 */
19
class AwesomeAspectKernel extends AspectKernel
20
{
21
    /**
22
     * Configure an AspectContainer with advisors, aspects and pointcuts
23
     *
24
     * @param AspectContainer $container
25
     *
26
     * @return void
27
     */
28
    protected function configureAop(AspectContainer $container)
29
    {
30
        $container->registerAspect(new DeclareErrorAspect());
31
        $container->registerAspect(new CachingAspect());
32
        $container->registerAspect(new LoggingAspect());
33
        $container->registerAspect(new IntroductionAspect());
34
        $container->registerAspect(new PropertyInterceptorAspect());
35
        $container->registerAspect(new FunctionInterceptorAspect());
36
        $container->registerAspect(new FluentInterfaceAspect());
37
        $container->registerAspect(new HealthyLiveAspect());
38
        $container->registerAspect(new DynamicMethodsAspect());
39
    }
40
}
41