Skip to content

Commit 37c99b7

Browse files
committed
fix: update routing configuration to use PHP files for WebProfilerBundle
1 parent 23dcb4f commit 37c99b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/Resources/app/AppKernel.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ public function loadRoutes(LoaderInterface $loader): RouteCollection
6666
$collection->add('/', new Route('/', ['_controller' => 'kernel::indexAction']));
6767

6868
$routes = new RoutingConfigurator($collection, $kernelLoader, $file, $file);
69-
$routes->import('@WebProfilerBundle/Resources/config/routing/wdt.xml')->prefix('_wdt');
70-
$routes->import('@WebProfilerBundle/Resources/config/routing/profiler.xml')->prefix('_profiler');
69+
$extension = self::MAJOR_VERSION >= 7 ? 'php' : 'xml';
70+
$routes->import('@WebProfilerBundle/Resources/config/routing/wdt.'.$extension)->prefix('_wdt');
71+
$routes->import('@WebProfilerBundle/Resources/config/routing/profiler.'.$extension)->prefix('_profiler');
7172

7273
return $collection;
7374
}

0 commit comments

Comments
 (0)