Skip to content

Instantly share code, notes, and snippets.

@alexandresalome
Created September 27, 2016 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandresalome/8ea3f0b27ba74846d49ec9e45dbb0b64 to your computer and use it in GitHub Desktop.
Save alexandresalome/8ea3f0b27ba74846d49ec9e45dbb0b64 to your computer and use it in GitHub Desktop.
public function getCacheDir()
{
$dir = getenv('SYMFONY__CACHE_DIR') ?: dirname(__DIR__).'/var/cache';
return $dir.'/'.$this->getEnvironment();
}
public function getLogDir()
{
$dir = getenv('SYMFONY__LOGS_DIR') ?: dirname(__DIR__).'/var/logs';
return $dir;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment