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

AppKernel::getCacheDir()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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