Skip to content

Commit 0209681

Browse files
committed
Update configuration_organization.rst
1 parent 87d6f1e commit 0209681

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbook/configuration/configuration_organization.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class::
2323

2424
public function registerContainerConfiguration(LoaderInterface $loader)
2525
{
26-
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
26+
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
2727
}
2828
}
2929

@@ -101,7 +101,7 @@ method::
101101

102102
public function registerContainerConfiguration(LoaderInterface $loader)
103103
{
104-
$loader->load(__DIR__.'/config/'.$this->getEnvironment().'/config.yml');
104+
$loader->load($this->getRootDir().'/config/'.$this->getEnvironment().'/config.yml');
105105
}
106106
}
107107

@@ -199,7 +199,7 @@ make Symfony aware of the new file organization::
199199

200200
public function registerContainerConfiguration(LoaderInterface $loader)
201201
{
202-
$loader->load(__DIR__.'/config/environments/'.$this->getEnvironment().'.yml');
202+
$loader->load($this->getRootDir().'/config/environments/'.$this->getEnvironment().'.yml');
203203
}
204204
}
205205

0 commit comments

Comments
 (0)