Passed
Pull Request — master (#187)
by Przemysław eRIZ
05:02
created

BitBagSyliusElasticsearchPlugin::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
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\SyliusElasticsearchPlugin;
12
13
use BitBag\SyliusElasticsearchPlugin\DependencyInjection\CompilerPass\AuthenticationManagerPolyfillPass;
14
use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
15
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
use Symfony\Component\HttpKernel\Bundle\Bundle;
18
19
final class BitBagSyliusElasticsearchPlugin extends Bundle
20
{
21
    use SyliusPluginTrait;
22
23
    public function build(ContainerBuilder $container)
24
    {
25
        $container->addCompilerPass(
26
            new AuthenticationManagerPolyfillPass(),
27
            PassConfig::TYPE_BEFORE_OPTIMIZATION,
28
            1
29
        );
30
    }
31
32
33
}
34