Completed
Push — master ( c4869b...a3beff )
by Paweł
31:40
created

SWPTemplatesSystemBundle::getSupportedDrivers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 6
Ratio 100 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 6
loc 6
ccs 2
cts 2
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the Superdesk Web Publisher Template Engine Bundle.
5
 *
6
 * Copyright 2015 Sourcefabric z.u. and contributors.
7
 *
8
 * For the full copyright and license information, please see the
9
 * AUTHORS and LICENSE files distributed with this source code.
10
 *
11
 * @copyright 2015 Sourcefabric z.ú
12
 * @license http://www.superdesk.org/license
13
 */
14
15
namespace SWP\Bundle\TemplatesSystemBundle;
16
17
use SWP\Bundle\StorageBundle\Drivers;
18
use SWP\Bundle\TemplatesSystemBundle\DependencyInjection\Compiler\RegisterContainerDataFactory;
19
use SWP\Bundle\TemplatesSystemBundle\DependencyInjection\Compiler\RegisterContainerFactoryPass;
20
use SWP\Bundle\TemplatesSystemBundle\DependencyInjection\ContainerBuilder\MetaLoaderCompilerPass;
21
use Symfony\Component\DependencyInjection\ContainerBuilder;
22
use SWP\Bundle\StorageBundle\DependencyInjection\Bundle\Bundle;
23
24 View Code Duplication
class SWPTemplatesSystemBundle extends Bundle
1 ignored issue
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
25
{
26 1
    public function build(ContainerBuilder $container)
27
    {
28 1
        parent::build($container);
29
30 1
        $container->addCompilerPass(new MetaLoaderCompilerPass());
31 1
        $container->addCompilerPass(new RegisterContainerFactoryPass());
32 1
        $container->addCompilerPass(new RegisterContainerDataFactory());
33 1
    }
34
35
    /**
36
     * {@inheritdoc}
37
     */
38 1
    public function getSupportedDrivers()
39
    {
40
        return [
41 1
            Drivers::DRIVER_DOCTRINE_ORM,
42
        ];
43
    }
44
45
    /**
46
     * {@inheritdoc}
47
     */
48 1
    public function getModelClassNamespace()
49
    {
50 1
        return 'SWP\Bundle\TemplatesSystemBundle\Model';
51
    }
52
}
53