Completed
Push — master ( 37a280...0c4ce1 )
by Yo
02:09
created

YoanmBehat3SymfonyKernelBridge__BridgeId__   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 39
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setBehatKernelEventDispatcher() 0 4 1
A boot() 0 6 1
A shutdown() 0 6 1
1
<?php
2
/******** WARNING : THIS FILE IS JUST A TEMPLATE, IT IS NOT LOADABLE AS IS ********/
3
namespace {
4
5
    /**
6
     * Autogenerated by Behat3SymfonyExtension.
7
     * Don't touch the content it will be erased !
8
     * See Yoanm\Behat3SymfonyExtension\Factory\KernelFactory::load()
9
     *
10
     * This file should be automatically deleted after kernel load. Except if kernel.kernelDebug === true
11
     */
12
    use __OriginalKernelClassNameToReplace__ as YoanmBehat3SymfonyKernelBridgeBaseKernel;
13
    use Yoanm\Behat3SymfonyExtension\Dispatcher\BehatKernelEventDispatcher;
14
15
    class YoanmBehat3SymfonyKernelBridge__BridgeId__ extends YoanmBehat3SymfonyKernelBridgeBaseKernel
16
    {
17
        /** @var BehatKernelEventDispatcher */
18
        private $behatKernelEventDispatcher;
19
20
        /**
21
         * @param BehatKernelEventDispatcher $behatKernelEventDispatcher
22
         */
23
        public function setBehatKernelEventDispatcher(BehatKernelEventDispatcher $behatKernelEventDispatcher)
24
        {
25
            $this->behatKernelEventDispatcher = $behatKernelEventDispatcher;
26
        }
27
28
        /**
29
         * Will dispatch events related to kernel boot action
30
         * Rely on parent class method
31
         *
32
         * {@inheritdoc}
33
         */
34
        public function boot()
35
        {
36
            $this->behatKernelEventDispatcher->beforeBoot($this);
37
            parent::boot();
38
            $this->behatKernelEventDispatcher->afterBoot($this);
39
        }
40
41
        /**
42
         * Will dispatch events related to kernel shutdown action
43
         * Rely on parent class method
44
         *
45
         * {@inheritdoc}
46
         */
47
        public function shutdown()
48
        {
49
            $this->behatKernelEventDispatcher->beforeShutdown($this);
50
            parent::shutdown();
51
            $this->behatKernelEventDispatcher->afterShutdown($this);
52
        }
53
    }
54
}
55