Provides a way to override cache and log folders form the ENV
This commit is contained in:
parent
bdc583cf0e
commit
5fa5d36153
@ -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}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user