Skip to content

Commit 6bc673c

Browse files
committed
minor #13904 Fix wrong RoutingConfigurator#import usage (BafS)
This PR was merged into the 5.1 branch. Discussion ---------- Fix wrong RoutingConfigurator#import usage <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- f20f59b Fix wrong RoutingConfigurator#import usage
2 parents 02410e9 + f20f59b commit 6bc673c

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)