Skip to content

Commit 60022e1

Browse files
committed
removed usage of getRootDir
1 parent cafb4bb commit 60022e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

symfony/framework-bundle/3.3/src/Kernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function getLogDir()
3838

3939
public function registerBundles()
4040
{
41-
$contents = require dirname($this->getRootDir()).'/etc/bundles.php';
41+
$contents = require dirname(__DIR__).'/etc/bundles.php';
4242
foreach ($contents as $class => $envs) {
4343
if (isset($envs['all']) || isset($envs[$this->getEnvironment()])) {
4444
yield new $class();
@@ -48,7 +48,7 @@ public function registerBundles()
4848

4949
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader)
5050
{
51-
$confDir = dirname($this->getRootDir()).'/etc';
51+
$confDir = dirname(__DIR__).'/etc';
5252
$loader->import($confDir.'/packages/*'.self::CONFIG_EXTS, 'glob');
5353
if (is_dir($confDir.'/packages/'.$this->getEnvironment())) {
5454
$loader->import($confDir.'/packages/'.$this->getEnvironment().'/**/*'.self::CONFIG_EXTS, 'glob');
@@ -58,7 +58,7 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
5858

5959
protected function configureRoutes(RouteCollectionBuilder $routes)
6060
{
61-
$confDir = dirname($this->getRootDir()).'/etc';
61+
$confDir = dirname(__DIR__).'/etc';
6262
if (is_dir($confDir.'/routing/')) {
6363
$routes->import($confDir.'/routing/*'.self::CONFIG_EXTS, '/', 'glob');
6464
}

0 commit comments

Comments
 (0)