Skip to content

Commit 3a82166

Browse files
committed
Merge branch '5.1'
* 5.1: Fix wrong RoutingConfigurator#import usage
2 parents 6a81ddc + 6bc673c commit 3a82166

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configuration/micro_kernel_trait.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ hold the kernel. Now it looks like this::
174174
{
175175
// import the WebProfilerRoutes, only if the bundle is enabled
176176
if (isset($this->bundles['WebProfilerBundle'])) {
177-
$routes->import('@WebProfilerBundle/Resources/config/routing/wdt.xml', '/_wdt');
178-
$routes->import('@WebProfilerBundle/Resources/config/routing/profiler.xml', '/_profiler');
177+
$routes->import('@WebProfilerBundle/Resources/config/routing/wdt.xml')->prefix('/_wdt');
178+
$routes->import('@WebProfilerBundle/Resources/config/routing/profiler.xml')->prefix('/_profiler');
179179
}
180180

181181
// load the annotation routes
182-
$routes->import(__DIR__.'/../src/Controller/', '/', 'annotation');
182+
$routes->import(__DIR__.'/../src/Controller/', 'annotation');
183183
}
184184

185185
// optional, to use the standard Symfony cache directory

0 commit comments

Comments
 (0)