diff --git a/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php b/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php index 540c97672c..5e47c38522 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php +++ b/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php @@ -63,6 +63,22 @@ trait MicroKernelTrait */ //abstract protected function configureContainer(ContainerConfigurator $c): void; + /** + * {@inheritdoc} + */ + public function getCacheDir(): string + { + return $_SERVER['APP_CACHE_DIR'] ?? parent::getCacheDir(); + } + + /** + * {@inheritdoc} + */ + public function getLogDir(): string + { + return $_SERVER['APP_LOG_DIR'] ?? parent::getLogDir(); + } + /** * {@inheritdoc} */