Skip to content

Commit f1e1bd0

Browse files
committed
Add missing imports and remove useless
1 parent 06bc487 commit f1e1bd0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

profiler/wdt_follow_ajax.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ Ideally this header should only be set during development and not for
2121
production. This can be accomplished by setting the header in a
2222
:ref:`kernel.response <component-http-kernel-kernel-response>` event listener::
2323

24+
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
25+
26+
// ...
27+
2428
public function onKernelResponse(FilterResponseEvent $event)
2529
{
2630
$response = $event->getResponse();

translation.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ of text (called a *message*), use the
119119
for example, that you're translating a simple message from inside a controller::
120120

121121
// ...
122-
use Symfony\Component\HttpFoundation\Response;
123122
use Symfony\Component\Translation\TranslatorInterface;
124123

125124
public function index(TranslatorInterface $translator)
@@ -198,7 +197,6 @@ Message Placeholders
198197

199198
Sometimes, a message containing a variable needs to be translated::
200199

201-
use Symfony\Component\HttpFoundation\Response;
202200
use Symfony\Component\Translation\TranslatorInterface;
203201

204202
public function index(TranslatorInterface $translator, $name)

0 commit comments

Comments
 (0)