File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -194,15 +194,12 @@ to hold the kernel. Now it looks like this::
194
194
{
195
195
// import the WebProfilerRoutes, only if the bundle is enabled
196
196
if (isset($this->bundles['WebProfilerBundle'])) {
197
- $routes->mount('/_wdt', $routes-> import('@WebProfilerBundle/Resources/config/routing/wdt.xml') );
198
- $routes->mount('/_profiler', $routes-> import('@WebProfilerBundle/Resources/config/routing/profiler.xml') );
197
+ $routes->import('@WebProfilerBundle/Resources/config/routing/wdt.xml', '/_wdt' );
198
+ $routes->import('@WebProfilerBundle/Resources/config/routing/profiler.xml', '/_profiler' );
199
199
}
200
200
201
201
// load the annotation routes
202
- $routes->mount(
203
- '/',
204
- $routes->import(__DIR__.'/../src/App/Controller/', '/', 'annotation')
205
- );
202
+ $routes->import(__DIR__.'/../src/App/Controller/', '/', 'annotation');
206
203
}
207
204
}
208
205
You can’t perform that action at this time.
0 commit comments