AppKernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 26
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 6 1
A registerContainerConfiguration() 0 5 1
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