Completed
Push — master ( 9c95f5...e428dc )
by Paweł
06:06
created

SWPUserBundle::getSupportedDrivers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Superdesk Web Publisher User Bundle.
7
 *
8
 * Copyright 2016 Sourcefabric z.ú. and contributors.
9
 *
10
 * For the full copyright and license information, please see the
11
 * AUTHORS and LICENSE files distributed with this source code.
12
 *
13
 * @copyright 2016 Sourcefabric z.ú
14
 * @license http://www.superdesk.org/license
15
 */
16
17
namespace SWP\Bundle\UserBundle;
18
19
use SWP\Bundle\StorageBundle\DependencyInjection\Bundle\Bundle;
20
use SWP\Bundle\StorageBundle\Drivers;
21
use SWP\Bundle\UserBundle\DependencyInjection\Compiler\OverrideFosMailerPass;
22
use Symfony\Component\DependencyInjection\ContainerBuilder;
23
24
class SWPUserBundle extends Bundle
25
{
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function build(ContainerBuilder $container)
30
    {
31
        parent::build($container);
32
33
        $container->addCompilerPass(new OverrideFosMailerPass());
34
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function getSupportedDrivers()
40
    {
41
        return [
42
            Drivers::DRIVER_DOCTRINE_ORM,
43
        ];
44
    }
45
46
    /**
47
     * {@inheritdoc}
48
     */
49
    public function getModelClassNamespace()
50
    {
51
        return 'SWP\Bundle\UserBundle\Model';
52
    }
53
}
54