Created
March 16, 2018 15:56
-
-
Save ptsakyrellis/05168ffb7924ac4bee2c4df4ffc1c17b to your computer and use it in GitHub Desktop.
Symfony AppKernel cache and log directories change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function getCacheDir() | |
{ | |
if (in_array($this->environment, array('dev', 'test'))) { | |
return '/dev/shm/votre_appli/cache/' . $this->environment; | |
} | |
return parent::getCacheDir(); | |
} | |
public function getLogDir() | |
{ | |
if (in_array($this->environment, array('dev', 'test'))) { | |
return '/dev/shm/votre_appli/logs'; | |
} | |
return parent::getLogDir(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment