File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
src/Symfony/Bundle/WebProfilerBundle Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 48
48
<default key =" _controller" >web_profiler.controller.exception_panel::body</default >
49
49
</route >
50
50
51
- <route id =" _profiler_exception_css" path =" /{token}/exception. css" >
51
+ <route id =" _profiler_exception_css" path =" /{token}/exception- css" >
52
52
<default key =" _controller" >web_profiler.controller.exception_panel::stylesheet</default >
53
53
</route >
54
54
Original file line number Diff line number Diff line change 4
4
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
5
xsi : schemaLocation =" http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd" >
6
6
7
- <route id =" _wdt_stylesheet" path =" /styles.css " >
7
+ <route id =" _wdt_stylesheet" path =" /styles" >
8
8
<default key =" _controller" >web_profiler.controller.profiler::toolbarStylesheetAction</default >
9
9
</route >
10
10
Original file line number Diff line number Diff line change @@ -164,6 +164,20 @@ public function testToolbarStylesheetAction()
164
164
$ this ->assertSame ('max-age=600, private ' , $ response ->headers ->get ('Cache-Control ' ));
165
165
}
166
166
167
+ public function testToolbarStylesheetActionFromPath ()
168
+ {
169
+ $ kernel = new WebProfilerBundleKernel ();
170
+ $ client = new KernelBrowser ($ kernel );
171
+
172
+ $ client ->request ('GET ' , '/_wdt/styles ' );
173
+
174
+ $ response = $ client ->getResponse ();
175
+
176
+ $ this ->assertSame (200 , $ response ->getStatusCode ());
177
+ $ this ->assertSame ('text/css; charset=UTF-8 ' , $ response ->headers ->get ('Content-Type ' ));
178
+ $ this ->assertSame ('max-age=600, private ' , $ response ->headers ->get ('Cache-Control ' ));
179
+ }
180
+
167
181
public static function getEmptyTokenCases ()
168
182
{
169
183
return [
You can’t perform that action at this time.
0 commit comments