Skip to content

Commit 0536f7c

Browse files
committed
Change for routes and services too
1 parent 2da7d24 commit 0536f7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ protected function configureContainer(ContainerConfigurator $container): void
1818
$container->import($projectDir.'/config/{packages}/*.yaml');
1919
$container->import($projectDir.'/config/{packages}/'.$this->environment.'/*.yaml');
2020

21-
if (is_file(\dirname(__DIR__).'/config/services.yaml')) {
21+
if (is_file($projectDir.'/config/services.yaml')) {
2222
$container->import($projectDir.'/config/services.yaml');
2323
$container->import($projectDir.'/config/{services}_'.$this->environment.'.yaml');
2424
} else {
@@ -33,7 +33,7 @@ protected function configureRoutes(RoutingConfigurator $routes): void
3333
$routes->import($projectDir.'/config/{routes}/'.$this->environment.'/*.yaml');
3434
$routes->import($projectDir.'/config/{routes}/*.yaml');
3535

36-
if (is_file(\dirname(__DIR__).'/config/routes.yaml')) {
36+
if (is_file($projectDir.'/config/routes.yaml')) {
3737
$routes->import($projectDir.'/config/routes.yaml');
3838
} else {
3939
$routes->import($projectDir.'/config/{routes}.php');

0 commit comments

Comments
 (0)