Skip to content

Commit

Permalink
minor #5173 Use $this->getRootDir() instead of __DIR__ (manelselles)
Browse files Browse the repository at this point in the history
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__
  • Loading branch information
wouterj committed Apr 26, 2015
2 parents 318bb8a + e0437ea commit eacb71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/configuration/environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class:
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
}
}
Expand Down

0 comments on commit eacb71b

Please sign in to comment.