Created
November 6, 2017 11:00
-
-
Save rkueny/4dbb7ea4d5d3504d1d999a139ba7a025 to your computer and use it in GitHub Desktop.
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->getEnvironment(), ['dev', 'test'], true)) { | |
return '/app-cache'; | |
} | |
return dirname(__DIR__).'/var/cache/'.$this->getEnvironment(); | |
} | |
public function getLogDir() | |
{ | |
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { | |
return '/app-logs'; | |
} | |
return dirname(__DIR__).'/var/logs'; | |
} | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment