BitBagSyliusCmsPlugin::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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