Passed
Push — master ( 8c44f8...c22a19 )
by Gerrit
14:38
created

AddiksRDMBundle   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 21
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 2 1
A registerClassLoader() 0 3 1
A classLoader() 0 3 1
A build() 0 3 1
1
<?php
2
3
namespace Addiks\RDMBundle;
4
5
use Symfony\Component\HttpKernel\Bundle\Bundle;
6
use Psr\Container\ContainerInterface;
7
use Webmozart\Assert\Assert;
8
use Addiks\RDMBundle\DataLoader\DataLoaderInterface;
9
use Doctrine\ORM\EntityManagerInterface;
10
use Composer\Autoload\ClassLoader;
11
use Addiks\RDMBundle\DependencyInjection\RDMCompilerPass;
12
use Symfony\Component\DependencyInjection\ContainerBuilder;
13
14
class AddiksRDMBundle extends Bundle
15
{
16
    private static ClassLoader|null $classLoader = null;
17
18
    public function boot()
19
    {
20
    }
21
22
    public function build(ContainerBuilder $container)
23
    {
24
        $container->addCompilerPass(new RDMCompilerPass());
25
    }
26
27
    public static function classLoader(): ClassLoader|null
28
    {
29
        return self::$classLoader;
30
    }
31
32
    public static function registerClassLoader(ClassLoader $classLoader): void
33
    {
34
        self::$classLoader = $classLoader;
35
    }
36
}
37