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

BitBagSyliusElasticsearchPlugin   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 6 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
namespace BitBag\SyliusElasticsearchPlugin;
11
12
use BitBag\SyliusElasticsearchPlugin\DependencyInjection\CompilerPass\AuthenticationManagerPolyfillPass;
13
use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
14
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
use Symfony\Component\HttpKernel\Bundle\Bundle;
17
18
final class BitBagSyliusElasticsearchPlugin extends Bundle
19
{
20
    use SyliusPluginTrait;
21
22
    public function build(ContainerBuilder $container)
23
    {
24
        $container->addCompilerPass(
25
            new AuthenticationManagerPolyfillPass(),
26
            PassConfig::TYPE_BEFORE_OPTIMIZATION,
27
            1
28
        );
29
    }
30
31
32
}
33