Completed
Push — flintci-19434 ( e060db )
by Sullivan
03:37 queued 01:42
created

AppKernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 12

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 19 1
A registerContainerConfiguration() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Sonata Project package.
7
 *
8
 * (c) Thomas Rabaix <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
use Symfony\Cmf\Component\Testing\HttpKernel\TestKernel;
15
use Symfony\Component\Config\Loader\LoaderInterface;
16
17
class AppKernel extends TestKernel
18
{
19
    public function configure()
20
    {
21
        $this->requireBundleSet('default');
22
23
        $this->requireBundleSets(['phpcr_odm']);
24
25
        $this->addBundles([
26
            new Sonata\BlockBundle\SonataBlockBundle(),
27
            new Sonata\CoreBundle\SonataCoreBundle(),
28
            new Sonata\AdminBundle\SonataAdminBundle(),
29
            new Knp\Bundle\MenuBundle\KnpMenuBundle(),
30
            new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
31
            new Sonata\DoctrinePHPCRAdminBundle\SonataDoctrinePHPCRAdminBundle(),
32
            new Symfony\Cmf\Bundle\TreeBrowserBundle\CmfTreeBrowserBundle(),
33
            new Symfony\Cmf\Bundle\ResourceBundle\CmfResourceBundle(),
34
            new Symfony\Cmf\Bundle\ResourceRestBundle\CmfResourceRestBundle(),
35
            new JMS\SerializerBundle\JMSSerializerBundle(),
36
        ]);
37
    }
38
39
    public function registerContainerConfiguration(LoaderInterface $loader)
40
    {
41
        $loader->load(__DIR__.'/config/config.php');
42
        $loader->load(__DIR__.'/config/admin-test.xml');
43
    }
44
}
45