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

setBehatKernelEventDispatcher()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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