import('@WebProfilerBundle/Resources/config/routing/wdt.xml'); $wdt->addPrefix('/_wdt'); $collection->addCollection($wdt); // profiler $profiler = $loader->import('@WebProfilerBundle/Resources/config/routing/profiler.xml'); $profiler->addPrefix('/_profiler'); $collection->addCollection($profiler); // main $collection->addCollection($loader->import('routing.php')); return $collection;