Skip to content

Commit eacb71b

Browse files
committed
minor #5173 Use $this->getRootDir() instead of __DIR__ (manelselles)
This PR was merged into the 2.3 branch. Discussion ---------- Use $this->getRootDir() instead of __DIR__ Use $this->getRootDir() when loading the configuration file from AppKernel. Symfony standard version uses $this->getRootDir() so we should have the same version on both sites. Commits ------- e0437ea Use $this->getRootDir() instead of __DIR__
2 parents 318bb8a + e0437ea commit eacb71b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/configuration/environments.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class:
4545
4646
public function registerContainerConfiguration(LoaderInterface $loader)
4747
{
48-
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
48+
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
4949
}
5050
}
5151

0 commit comments

Comments
 (0)