Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 05579ba

Browse files
committed
bug #757 Use getRootDir() rather than assuming __DIR__ (thewilkybarkid)
This PR was merged into the 2.3 branch. Discussion ---------- Use getRootDir() rather than assuming __DIR__ In the event that `getRootDir()` in `AppKernel` is overridden (eg the file is moved elsewhere but the config etc stays put), the `registerContainerConfiguration` would also have to be changed. Commits ------- 36ab0c1 Use getRootDir() rather than assuming __DIR__
2 parents d6e5483 + 36ab0c1 commit 05579ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/AppKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ public function registerBundles()
3131

3232
public function registerContainerConfiguration(LoaderInterface $loader)
3333
{
34-
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
34+
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
3535
}
3636
}

0 commit comments

Comments
 (0)