| Total Complexity | 7 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class AppKernel extends Kernel |
||
| 10 | { |
||
| 11 | public function __construct(string $environment, bool $debug) |
||
| 12 | { |
||
| 13 | parent::__construct($environment, $debug); |
||
| 14 | |||
| 15 | (new Filesystem())->remove($this->getCacheDir()); |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * registerBundles. |
||
| 20 | * |
||
| 21 | * @return object[] |
||
| 22 | */ |
||
| 23 | public function registerBundles(): array |
||
| 24 | { |
||
| 25 | return [ |
||
| 26 | new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(), |
||
| 27 | new \SymfonyBundles\RedisBundle\SymfonyBundlesRedisBundle(), |
||
| 28 | ]; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getRootDir(): string |
||
| 32 | { |
||
| 33 | return __DIR__; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getCacheDir(): string |
||
| 37 | { |
||
| 38 | return '/tmp/symfony-cache'; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getLogDir(): string |
||
| 42 | { |
||
| 43 | return '/tmp/symfony-cache'; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function registerContainerConfiguration(LoaderInterface $loader): void |
||
| 55 | } |
||
| 56 | } |
||
| 57 |