Completed
Pull Request — develop (#13)
by Wachter
11:52
created

AppKernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 23
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of Sulu.
5
 *
6
 * (c) MASSIVE ART WebServices GmbH
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
use Symfony\Component\Config\Loader\LoaderInterface;
13
14
/**
15
 * This is the AppKernel for tests.
16
 */
17
class AppKernel extends \Symfony\Component\HttpKernel\Kernel
18
{
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function registerBundles()
23
    {
24
        $bundles = [
25
            new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
26
            new \Sulu\Bundle\ValidationBundle\SuluValidationBundle(),
27
        ];
28
29
        return $bundles;
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function registerContainerConfiguration(LoaderInterface $loader)
36
    {
37
        $loader->load(__DIR__ . '/config/config.yml');
38
    }
39
}
40