Completed
Push — master ( e32202...083db4 )
by Alex
08:17
created

TestKernel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
lcom 1
cbo 6
dl 0
loc 25
rs 10
c 1
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of the PierstovalCharacterManagerBundle package.
5
 *
6
 * (c) Alexandre Rock Ancelet <[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 Pierstoval\Bundle\CharacterManagerBundle\Tests\Fixtures\App;
13
14
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
15
use Pierstoval\Bundle\CharacterManagerBundle\PierstovalCharacterManagerBundle;
16
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
17
use Symfony\Bundle\TwigBundle\TwigBundle;
18
use Symfony\Component\Config\Loader\LoaderInterface;
19
use Symfony\Component\HttpKernel\Kernel;
20
21
class TestKernel extends Kernel
22
{
23
    public function registerBundles()
24
    {
25
        return [
26
            new FrameworkBundle(),
27
            new DoctrineBundle(),
28
            new TwigBundle(),
29
            new PierstovalCharacterManagerBundle(),
30
        ];
31
    }
32
33
    /**
34
     * Loads the container configuration.
35
     */
36
    public function registerContainerConfiguration(LoaderInterface $loader)
37
    {
38
        $loader->load(__DIR__.'/config/config_'.$this->environment.'.yaml');
39
    }
40
41
    public function getRootDir()
42
    {
43
        return $this->getProjectDir().'/build';
44
    }
45
}
46