1 | <?php |
||
8 | class AppKernel extends Kernel |
||
9 | { |
||
10 | public function __construct() |
||
11 | { |
||
12 | $env = getenv('APP_ENV') ?: 'prod'; |
||
13 | $debug = filter_var(getenv('APP_DEBUG'), FILTER_VALIDATE_BOOLEAN); |
||
14 | |||
15 | if ($debug === true) { |
||
16 | \Symfony\Component\Debug\Debug::enable(); |
||
17 | } |
||
18 | |||
19 | parent::__construct($env, $debug); |
||
20 | } |
||
21 | |||
22 | public function registerBundles(): array |
||
40 | |||
41 | public function getRootDir(): string |
||
45 | |||
46 | public function getCacheDir(): string |
||
50 | |||
51 | public function getLogDir(): string |
||
55 | |||
56 | public function registerContainerConfiguration(LoaderInterface $loader) |
||
60 | } |
||
61 |