Skip to content

MakerBundle v1.11.13 uses urlGenerator instead of Router #10925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion security/form_login_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ be redirected after success:

- throw new \Exception('TODO: provide a valid redirect inside '.__FILE__);
+ // redirect to some "app_homepage" route - of wherever you want
+ return new RedirectResponse($this->router->generate('app_homepage'));
+ return new RedirectResponse($this->urlGenerator->generate('app_homepage'));
}

Unless you have any other TODOs in that file, that's it! If you're loading users
Expand Down