Completed
Push — master ( 0e2bb1...d48330 )
by WEBEWEB
02:01
created

AbstractKernel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 23
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCacheDir() 0 3 1
A getLogDir() 0 3 1
A registerContainerConfiguration() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the core-bundle package.
5
 *
6
 * (c) 2018 WEBEWEB
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
namespace WBW\Bundle\CoreBundle\Tests;
13
14
use Symfony\Component\Config\Loader\LoaderInterface;
15
use Symfony\Component\HttpKernel\Kernel;
16
17
/**
18
 * Abstract kernel.
19
 *
20
 * @author webeweb <https://github.com/webeweb/>
21
 * @package WBW\Bundle\CoreBundle\Tests
22
 * @abstract
23
 */
24
abstract class AbstractKernel extends Kernel {
25
26
    /**
27
     * {@inheritDoc}
28
     */
29
    public function getCacheDir(): string {
30
        return getcwd() . "/Tests/Fixtures/app/var/cache";
31
    }
32
33
    /**
34
     * {@inheritDoc}
35
     */
36
    public function getLogDir(): string {
37
        return getcwd() . "/Tests/Fixtures/app/var/logs";
38
    }
39
40
    /**
41
     * {@inheritDoc}
42
     */
43
    public function registerContainerConfiguration(LoaderInterface $loader): void {
44
        $loader->load(getcwd() . "/Tests/Fixtures/app/config/config_test.yml");
45
    }
46
}
47