Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 8678f0a

Browse files
committed
minor #889 Use Kernel::getEnvironment() to keep consistency (dosten)
This PR was merged into the 3.0-dev branch. Discussion ---------- Use Kernel::getEnvironment() to keep consistency Hi there! The PR #850 introduced the use of the variable `$this->environment` to get the environment, but we already use the method `Kernel::getEnvironment()`, this PR fixes this to keep consistency. Please review this before the Symfony 3.0 release. Commits ------- d7320f7 Use Kernel::getEnvironment() to keep consistency
2 parents e9cea06 + d7320f7 commit 8678f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/AppKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function getRootDir()
3535

3636
public function getCacheDir()
3737
{
38-
return dirname(__DIR__).'/var/cache/'.$this->environment;
38+
return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
3939
}
4040

4141
public function getLogDir()

0 commit comments

Comments
 (0)