Completed
Push — tests-organisation ( e0cc56...d1374b )
by Kamil
20:01
created

AppKernel::__construct()   A

Complexity

Conditions 4
Paths 3

Size

Total Lines 15
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.2
c 0
b 0
f 0
nc 3
cc 4
eloc 9
nop 4
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
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\Component\Config\Loader\LoaderInterface;
13
use Symfony\Component\HttpKernel\Kernel;
14
15
/**
16
 * @author Magdalena Banasiak <[email protected]>
17
 */
18
class AppKernel extends Kernel
0 ignored issues
show
Comprehensibility Best Practice introduced by
The type AppKernel has been defined more than once; this definition is ignored, only the first definition in app/AppKernel.php (L18-35) is considered.

This check looks for classes that have been defined more than once.

If you can, we would recommend to use standard object-oriented programming techniques. For example, to avoid multiple types, it might make sense to create a common interface, and then multiple, different implementations for that interface.

This also has the side-effect of providing you with better IDE auto-completion, static analysis and also better OPCode caching from PHP.

Loading history...
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function registerBundles()
24
    {
25
        return [
26
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
27
            new Symfony\Bundle\TwigBundle\TwigBundle(),
28
            new Sylius\Bundle\ThemeBundle\Tests\Functional\TestBundle\TestBundle(),
29
            new Sylius\Bundle\ThemeBundle\SyliusThemeBundle(),
30
        ];
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    public function registerContainerConfiguration(LoaderInterface $loader)
37
    {
38
        $loader->load(__DIR__ . '/config/config.yml');
39
    }
40
41
    /**
42
     * {@inheritdoc}
43
     */
44
    public function getCacheDir()
45
    {
46
        return sys_get_temp_dir() . '/SyliusThemeBundle/cache/' . $this->getEnvironment();
47
    }
48
49
    /**
50
     * {@inheritdoc}
51
     */
52
    public function getLogDir()
53
    {
54
        return sys_get_temp_dir() . '/SyliusThemeBundle/logs';
55
    }
56
}
57