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

AddiksRDMBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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