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

AppKernel::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 9
nc 1
nop 0
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