BitBagSyliusCmsPlugin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 7 1
1
<?php
2
3
/*
4
 * This file was created by developers working at BitBag
5
 * Do you need more information about us and what we do? Visit our https://bitbag.io website!
6
 * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
7
*/
8
9
declare(strict_types=1);
10
11
namespace BitBag\SyliusCmsPlugin;
12
13
use BitBag\SyliusCmsPlugin\DependencyInjection\Compiler\AuthenticationManagerPolyfillPass;
14
use BitBag\SyliusCmsPlugin\DependencyInjection\Compiler\ImporterCompilerPass;
15
use BitBag\SyliusCmsPlugin\DependencyInjection\Compiler\MediaProviderPass;
16
use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
17
use Symfony\Component\DependencyInjection\ContainerBuilder;
18
use Symfony\Component\HttpKernel\Bundle\Bundle;
19
20
final class BitBagSyliusCmsPlugin extends Bundle
21
{
22
    use SyliusPluginTrait;
23
24
    public function build(ContainerBuilder $container): void
25
    {
26
        parent::build($container);
27
28
        $container->addCompilerPass(new ImporterCompilerPass());
29
        $container->addCompilerPass(new MediaProviderPass());
30
        $container->addCompilerPass(new AuthenticationManagerPolyfillPass());
31
    }
32
}
33