Skip to content

Commit e0437ea

Browse files
committed
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.
1 parent 73ccc8b commit e0437ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/configuration/environments.rst

Lines changed: 1 addition & 1 deletion
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)