File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
symfony/framework-bundle/3.3/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function getLogDir()
38
38
39
39
public function registerBundles ()
40
40
{
41
- $ contents = require dirname ($ this -> getRootDir () ).'/etc/bundles.php ' ;
41
+ $ contents = require dirname (__DIR__ ).'/etc/bundles.php ' ;
42
42
foreach ($ contents as $ class => $ envs ) {
43
43
if (isset ($ envs ['all ' ]) || isset ($ envs [$ this ->getEnvironment ()])) {
44
44
yield new $ class ();
@@ -48,7 +48,7 @@ public function registerBundles()
48
48
49
49
protected function configureContainer (ContainerBuilder $ container , LoaderInterface $ loader )
50
50
{
51
- $ confDir = dirname ($ this -> getRootDir () ).'/etc ' ;
51
+ $ confDir = dirname (__DIR__ ).'/etc ' ;
52
52
$ loader ->import ($ confDir .'/packages/* ' .self ::CONFIG_EXTS , 'glob ' );
53
53
if (is_dir ($ confDir .'/packages/ ' .$ this ->getEnvironment ())) {
54
54
$ loader ->import ($ confDir .'/packages/ ' .$ this ->getEnvironment ().'/**/* ' .self ::CONFIG_EXTS , 'glob ' );
@@ -58,7 +58,7 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
58
58
59
59
protected function configureRoutes (RouteCollectionBuilder $ routes )
60
60
{
61
- $ confDir = dirname ($ this -> getRootDir () ).'/etc ' ;
61
+ $ confDir = dirname (__DIR__ ).'/etc ' ;
62
62
if (is_dir ($ confDir .'/routing/ ' )) {
63
63
$ routes ->import ($ confDir .'/routing/* ' .self ::CONFIG_EXTS , '/ ' , 'glob ' );
64
64
}
You can’t perform that action at this time.
0 commit comments