We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6466b4 commit 457b016Copy full SHA for 457b016
Tests/Resources/app/AppKernel.php
@@ -53,7 +53,13 @@ protected function configureRoutes(RouteCollectionBuilder $routes)
53
{
54
$routes->import('@WebProfilerBundle/Resources/config/routing/wdt.xml', '/_wdt');
55
$routes->import('@WebProfilerBundle/Resources/config/routing/profiler.xml', '/_profiler');
56
- $routes->add('/', 'kernel:indexAction');
+
57
+ if (Kernel::MAJOR_VERSION < 4 || (Kernel::MAJOR_VERSION === 4 && Kernel::MINOR_VERSION === 0)) {
58
+ $routes->add('/', 'kernel:indexAction');
59
+ } else {
60
+ // If 4.1+
61
+ $routes->add('/', 'kernel::indexAction');
62
+ }
63
}
64
65
/**
0 commit comments