Skip to content

Commit aef398a

Browse files
committed
Replaced MicroKernel::configureRoutes with configureRouting(Configurator)
1 parent 781b1c1 commit aef398a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Symfony\Component\Config\Resource\FileResource;
88
use Symfony\Component\DependencyInjection\ContainerBuilder;
99
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
10-
use Symfony\Component\Routing\RouteCollectionBuilder;
10+
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
1111

1212
class Kernel extends BaseKernel
1313
{
@@ -43,12 +43,12 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
4343
$loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob');
4444
}
4545

46-
protected function configureRoutes(RouteCollectionBuilder $routes): void
46+
protected function configureRouting(RoutingConfigurator $routes): void
4747
{
4848
$confDir = $this->getProjectDir().'/config';
4949

50-
$routes->import($confDir.'/{routes}/'.$this->environment.'/*'.self::CONFIG_EXTS, '/', 'glob');
51-
$routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob');
52-
$routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob');
50+
$routes->import($confDir.'/{routes}/'.$this->environment.'/*'.self::CONFIG_EXTS, 'glob');
51+
$routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, 'glob');
52+
$routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, 'glob');
5353
}
5454
}

0 commit comments

Comments
 (0)