Skip to content

Commit

Permalink
minor #5174 [CookBook] [configuration_organization] Use $this->getRoo…
Browse files Browse the repository at this point in the history
…tDir() instead of __DIR__ (manelselles)

This PR was merged into the 2.3 branch.

Discussion
----------

[CookBook] [configuration_organization] Use $this->getRootDir() instead of __DIR__

Commits
-------

0209681 Update configuration_organization.rst
  • Loading branch information
wouterj committed Apr 26, 2015
2 parents eacb71b + 0209681 commit 20ac2a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cookbook/configuration/configuration_organization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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 Expand Up @@ -101,7 +101,7 @@ method::

public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config/'.$this->getEnvironment().'/config.yml');
$loader->load($this->getRootDir().'/config/'.$this->getEnvironment().'/config.yml');
}
}

Expand Down Expand Up @@ -199,7 +199,7 @@ make Symfony aware of the new file organization::

public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config/environments/'.$this->getEnvironment().'.yml');
$loader->load($this->getRootDir().'/config/environments/'.$this->getEnvironment().'.yml');
}
}

Expand Down

0 comments on commit 20ac2a6

Please sign in to comment.