Skip to content

Commit e86b30c

Browse files
committed
bug #467 Missing return statement in example (snebes)
This PR was squashed before being merged into the 1.0-dev branch (closes #467). Discussion ---------- Missing return statement in example Missing return statement in example SecurityController. Added a missing space as well. Commits ------- 7b5c7d0 Missing return statement in example
2 parents ce4bdc9 + 7b5c7d0 commit e86b30c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Security/SecurityControllerBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function addLoginMethod(ClassSourceManipulator $manipulator)
3636
$manipulator->addMethodBody($loginMethodBuilder, <<<'CODE'
3737
<?php
3838
// if ($this->getUser()) {
39-
// $this->redirectToRoute('target_path');
39+
// return $this->redirectToRoute('target_path');
4040
// }
4141
CODE
4242
);

tests/Security/fixtures/expected/SecurityController_login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class SecurityController extends AbstractController
1515
public function login(AuthenticationUtils $authenticationUtils): Response
1616
{
1717
// if ($this->getUser()) {
18-
// $this->redirectToRoute('target_path');
18+
// return $this->redirectToRoute('target_path');
1919
// }
2020

2121
// get the login error if there is one

tests/Security/fixtures/expected/SecurityController_login_logout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class SecurityController extends AbstractController
1515
public function login(AuthenticationUtils $authenticationUtils): Response
1616
{
1717
// if ($this->getUser()) {
18-
// $this->redirectToRoute('target_path');
18+
// return $this->redirectToRoute('target_path');
1919
// }
2020

2121
// get the login error if there is one

0 commit comments

Comments
 (0)