8000 MakerBundle uses urlGenerator instead of Router · symfony/symfony-docs@f00344a · GitHub
[go: up one dir, main page]

Skip to content

Commit f00344a

Browse files
romaricdrigonjaviereguiluz
authored andcommitted
MakerBundle uses urlGenerator instead of Router
1 parent ba53ff2 commit f00344a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/form_login_setup.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ be redirected after success:
295295
296296
- throw new \Exception('TODO: provide a valid redirect inside '.__FILE__);
297297
+ // redirect to some "app_homepage" route - of wherever you want
298-
+ return new RedirectResponse($this->router->generate('app_homepage'));
298+
+ return new RedirectResponse($this->urlGenerator->generate('app_homepage'));
299299
}
300300
301301
Unless you have any other TODOs in that file, that's it! If you're loading users

0 commit comments

Comments
 (0)
0