mirror of
https://github.com/doctrine/DoctrinePHPCRBundle.git
synced 2026-03-23 22:32:20 +01:00
Fix profiler route includes
This commit is contained in:
7
tests/Fixtures/App/config/routes/web_profiler_sf8.yaml
Normal file
7
tests/Fixtures/App/config/routes/web_profiler_sf8.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
web_profiler_wdt:
|
||||
resource: '@WebProfilerBundle/Resources/config/routing/wdt.php'
|
||||
prefix: /_wdt
|
||||
|
||||
web_profiler_profiler:
|
||||
resource: '@WebProfilerBundle/Resources/config/routing/profiler.php'
|
||||
prefix: /_profiler
|
||||
@@ -5,11 +5,15 @@ use Symfony\Component\Routing\RouteCollection;
|
||||
$collection = new RouteCollection();
|
||||
|
||||
$collection->addCollection(
|
||||
$loader->import(__DIR__.'/routes/web_profiler.yaml')
|
||||
$loader->import(
|
||||
\file_exists(__DIR__.'/../../../../vendor/symfony/web-profiler-bundle/Resources/config/routing/wdt.php')
|
||||
? __DIR__.'/routes/web_profiler_sf8.yaml'
|
||||
: __DIR__.'/routes/web_profiler.yaml'
|
||||
),
|
||||
);
|
||||
|
||||
$collection->addCollection(
|
||||
$loader->import(__DIR__.'/routes/routes.yaml')
|
||||
$loader->import(__DIR__.'/routes/routes.yaml'),
|
||||
);
|
||||
|
||||
return $collection;
|
||||
|
||||
Reference in New Issue
Block a user