Passed
Branch master (f75e0d)
by Aimeos
06:21
created

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