RoachPhpBundle   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 11
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A build() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * Copyright (c) 2022 Ne-Lexa <[email protected]>
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 *
11
 * @see https://github.com/Ne-Lexa/roach-php-bundle
12
 */
13
14
namespace Nelexa\RoachPhpBundle;
15
16
use Nelexa\RoachPhpBundle\DependencyInjection\Compiler\RoachCompilerPass;
17
use RoachPHP\Roach;
18
use Symfony\Component\DependencyInjection\ContainerBuilder;
19
use Symfony\Component\HttpKernel\Bundle\Bundle;
20
21
final class RoachPhpBundle extends Bundle
22
{
23 11
    public function boot(): void
24
    {
25 11
        parent::boot();
26 11
        Roach::useContainer($this->container);
27
    }
28
29 1
    public function build(ContainerBuilder $container): void
30
    {
31 1
        $container->addCompilerPass(new RoachCompilerPass());
32
    }
33
}
34