AppKernel::registerBundles()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace Bruli\EventBusBundleTests\Infrastructure;
5
6
use Bruli\EventBusBundle\EventBusBundle;
7
use Symfony\Component\Config\Loader\LoaderInterface;
8
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
9
use Symfony\Component\HttpKernel\Kernel;
10
11
final class AppKernel extends Kernel
12
{
13
14
    /**
15
     * Returns an array of bundles to register.
16
     *
17
     * @return BundleInterface[] An array of bundle instances
18
     */
19
    public function registerBundles()
20
    {
21
        return [
22
            new EventBusBundle()
23
        ];
24
    }
25
26
    /**
27
     * Loads the container configuration.
28
     *
29
     * @param LoaderInterface $loader A LoaderInterface instance
30
     */
31
    public function registerContainerConfiguration(LoaderInterface $loader)
32
    {
33
        $dir = __DIR__ . '/services.yml';
34
        $loader->load($dir);
35
    }
36
}
37