Skip to content

Commit 663a23e

Browse files
wouterjOskarStark
andauthored
Apply suggestions from code review
Co-authored-by: Oskar Stark <[email protected]>
1 parent 627249d commit 663a23e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

security/csrf.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ Then, get the value of the CSRF token in the controller action and use the
153153
:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController::isCsrfTokenValid`
154154
to check its validity::
155155

156-
use Symfony\Component\HttpFoundation\Response;
157156
use Symfony\Component\HttpFoundation\Request;
157+
use Symfony\Component\HttpFoundation\Response;
158158
// ...
159159

160160
public function delete(Request $request): Response

security/form_login_setup.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ a traditional HTML form that submits to ``/login``:
196196
use App\Entity\User;
197197
use Doctrine\ORM\EntityManagerInterface;
198198
use Symfony\Component\HttpFoundation\RedirectResponse;
199-
use Symfony\Component\HttpFoundation\Response;
200199
use Symfony\Component\HttpFoundation\Request;
200+
use Symfony\Component\HttpFoundation\Response;
201201
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
202202
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
203203
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;

0 commit comments

Comments
 (0)