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

AwesomeAspectKernel::configureAop()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 10

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 12
rs 9.4285
cc 1
eloc 10
nc 1
nop 1
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