Completed
Pull Request — 2.x (#521)
by Andrey F.
02:08
created

Kernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 17
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 8 1
A registerContainerConfiguration() 0 5 1
1
<?php
2
3
/*
4
 * This file is part of the Sonata Project package.
5
 *
6
 * (c) Thomas Rabaix <[email protected]>
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 Sonata\DoctrinePHPCRAdminBundle\Tests\Fixtures\App;
13
14
use Symfony\Cmf\Component\Testing\HttpKernel\TestKernel;
15
use Symfony\Component\Config\Loader\LoaderInterface;
16
17
class Kernel extends TestKernel
18
{
19
    public function configure()
20
    {
21
        $this->registerConfiguredBundles();
22
        $this->requireBundleSet('default');
23
        $this->requireBundleSets([
24
            'phpcr_odm',
25
        ]);
26
    }
27
28
    public function registerContainerConfiguration(LoaderInterface $loader)
29
    {
30
        $loader->load(__DIR__ . '/config/config.php');
31
        $loader->load(__DIR__ . '/config/admin-test.xml');
32
    }
33
}
34