Completed
Push — symfony-3.3 ( e8b928...951e26 )
by Kamil
24:54 queued 03:04
created

SyliusUserBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sylius\Bundle\UserBundle;
13
14
use Sylius\Bundle\ResourceBundle\AbstractResourceBundle;
15
use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
16
use Sylius\Bundle\UserBundle\DependencyInjection\Compiler\SymfonyCompatibilityPass;
17
use Symfony\Component\DependencyInjection\ContainerBuilder;
18
19
/**
20
 * @author Paweł Jędrzejewski <[email protected]>
21
 */
22
final class SyliusUserBundle extends AbstractResourceBundle
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function getSupportedDrivers()
28
    {
29
        return [
30
            SyliusResourceBundle::DRIVER_DOCTRINE_ORM,
31
        ];
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function build(ContainerBuilder $container)
38
    {
39
        parent::build($container);
40
41
        $container->addCompilerPass(new SymfonyCompatibilityPass());
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    protected function getModelNamespace()
48
    {
49
        return 'Sylius\Component\User\Model';
50
    }
51
}
52