Completed
Push — master ( eb83f4...bb238e )
by Maximilian
14s
created

AppKernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 5
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 15 1
A registerContainerConfiguration() 0 5 1
1
<?php
2
3
/*
4
 * This file is part of the Symfony CMF package.
5
 *
6
 * (c) 2011-2017 Symfony CMF
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
use Symfony\Cmf\Component\Testing\HttpKernel\TestKernel;
13
use Symfony\Component\Config\Loader\LoaderInterface;
14
15
class AppKernel extends TestKernel
16
{
17
    public function configure()
18
    {
19
        $this->requireBundleSet('default');
20
21
        $this->requireBundleSets(array(
22
            'phpcr_odm',
23
            'sonata_admin_phpcr',
24
        ));
25
26
        $this->addBundles(array(
27
            new Symfony\Cmf\Bundle\ResourceBundle\CmfResourceBundle(),
28
            new Symfony\Cmf\Bundle\ResourceRestBundle\CmfResourceRestBundle(),
29
            new JMS\SerializerBundle\JMSSerializerBundle(),
30
        ));
31
    }
32
33
    public function registerContainerConfiguration(LoaderInterface $loader)
34
    {
35
        $loader->load(__DIR__.'/config/config.php');
36
        $loader->load(__DIR__.'/config/admin-test.xml');
37
    }
38
}
39