Skip to content

Commit e892872

Browse files
Fix profiler route includes
1 parent 7242b9c commit e892872

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
web_profiler_wdt:
2+
resource: '@WebProfilerBundle/Resources/config/routing/wdt.php'
3+
prefix: /_wdt
4+
5+
web_profiler_profiler:
6+
resource: '@WebProfilerBundle/Resources/config/routing/profiler.php'
7+
prefix: /_profiler

tests/Fixtures/App/config/routing.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@
55
$collection = new RouteCollection();
66

77
$collection->addCollection(
8-
$loader->import(__DIR__.'/routes/web_profiler.yaml')
8+
$loader->import(
9+
\file_exists(__DIR__.'/../../../../vendor/symfony/web-profiler-bundle/Resources/config/routing/wdt.php')
10+
? __DIR__.'/routes/web_profiler_sf8.yaml'
11+
: __DIR__.'/routes/web_profiler.yaml'
12+
),
913
);
1014

1115
$collection->addCollection(
12-
$loader->import(__DIR__.'/routes/routes.yaml')
16+
$loader->import(__DIR__.'/routes/routes.yaml'),
1317
);
1418

1519
return $collection;

0 commit comments

Comments
 (0)