AppKernel   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 47
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getContainerBaseClass() 0 3 1
A getLogDir() 0 3 1
A registerBundles() 0 10 1
A getCacheDir() 0 3 1
A registerContainerConfiguration() 0 3 1
1
<?php
2
3
use Symfony\Component\Config\Loader\LoaderInterface;
4
use Symfony\Component\HttpKernel\Kernel;
5
6
class AppKernel extends Kernel
7
{
8
    /**
9
     * {@inheritdoc}
10
     */
11
    public function registerBundles()
12
    {
13
        $bundles =  [
14
            new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
15
            new \Cache\AdapterBundle\CacheAdapterBundle(),
16
            new \Http\HttplugBundle\HttplugBundle(),
17
            new \ElevenLabs\ApiServiceBundle\ApiServiceBundle(),
18
        ];
19
        
20
        return $bundles;
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function registerContainerConfiguration(LoaderInterface $loader)
27
    {
28
        $loader->load(__DIR__.'/config/config.yml');
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function getCacheDir()
35
    {
36
        return sys_get_temp_dir().'/apiservice-bundle/cache';
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42
    public function getLogDir()
43
    {
44
        return sys_get_temp_dir().'/apiservice-bundle/logs';
45
    }
46
47
    /**
48
     * {@inheritdoc}
49
     */
50
    protected function getContainerBaseClass()
51
    {
52
        return '\PSS\SymfonyMockerContainer\DependencyInjection\MockerContainer';
53
    }
54
}
55