Passed
Push — master ( 3c3bea...36cb3b )
by Aimeos
17:26
created

AppKernel   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
dl 0
loc 42
rs 10
c 1
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 9 1
A registerContainerConfiguration() 0 3 1
A getLogDir() 0 3 1
A getCacheDir() 0 3 1
1
<?php
2
3
namespace Aimeos\ShopBundle\Tests\Fixtures;
4
5
use Symfony\Component\Config\Loader\LoaderInterface;
6
use Symfony\Component\HttpKernel\Kernel;
7
8
9
class AppKernel extends Kernel
10
{
11
	/**
12
	 * {@inheritdoc}
13
	 */
14
	public function registerBundles() : \Traversable|array
15
	{
16
		return array(
17
			new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
18
			new \Symfony\Bundle\SecurityBundle\SecurityBundle(),
19
			new \Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
20
			new \Symfony\Bundle\MonologBundle\MonologBundle(),
21
			new \Symfony\Bundle\TwigBundle\TwigBundle(),
22
			new \Aimeos\ShopBundle\AimeosShopBundle(),
23
		);
24
	}
25
26
27
	/**
28
	 * {@inheritdoc}
29
	 */
30
	public function registerContainerConfiguration( LoaderInterface $loader )
31
	{
32
		$loader->load( __DIR__ . '/config/config.yml' );
33
	}
34
35
36
	/**
37
	 * {@inheritdoc}
38
	 */
39
	public function getCacheDir() : string
40
	{
41
		return sys_get_temp_dir() . '/aimeos-symfony/cache';
42
	}
43
44
45
	/**
46
	 * {@inheritdoc}
47
	 */
48
	public function getLogDir() : string
49
	{
50
		return sys_get_temp_dir() . '/aimeos-symfony/logs';
51
	}
52
}
53