Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfe8f77c

Browse files
fix: loading of WebProfilerBundle’s toolbar stylesheet
1 parent14bff67 commitfe8f77c

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

‎src/Symfony/Bundle/WebProfilerBundle/Resources/config/routing/profiler.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<defaultkey="_controller">web_profiler.controller.exception_panel::body</default>
4949
</route>
5050

51-
<routeid="_profiler_exception_css"path="/{token}/exception.css">
51+
<routeid="_profiler_exception_css"path="/{token}/exception-css">
5252
<defaultkey="_controller">web_profiler.controller.exception_panel::stylesheet</default>
5353
</route>
5454

‎src/Symfony/Bundle/WebProfilerBundle/Resources/config/routing/wdt.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd">
66

7-
<routeid="_wdt_stylesheet"path="/styles.css">
7+
<routeid="_wdt_stylesheet"path="/styles">
88
<defaultkey="_controller">web_profiler.controller.profiler::toolbarStylesheetAction</default>
99
</route>
1010

‎src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,20 @@ public function testToolbarStylesheetAction()
164164
$this->assertSame('max-age=600, private',$response->headers->get('Cache-Control'));
165165
}
166166

167+
publicfunctiontestToolbarStylesheetActionFromPath()
168+
{
169+
$kernel =newWebProfilerBundleKernel();
170+
$client =newKernelBrowser($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+
167181
publicstaticfunctiongetEmptyTokenCases()
168182
{
169183
return [

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp