https://github.com/a5sys/loggedinredirectionbundle
A redirection is done if the logged user want to go to a url (the login url)
https://github.com/a5sys/loggedinredirectionbundle
Last synced: 3 months ago
JSON representation
A redirection is done if the logged user want to go to a url (the login url)
- Host: GitHub
- URL: https://github.com/a5sys/loggedinredirectionbundle
- Owner: A5sys
- License: mit
- Created: 2015-11-12T15:44:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-07-19T10:24:32.000Z (almost 4 years ago)
- Last Synced: 2025-01-19T11:43:35.050Z (5 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LoggedInRedirectionBundle
The bundle redirect the logged in user to an url if he attempt to go to an url.
The use case:
* A user bookmarks the login page and always get the login form even if he is logged in. So we redirect to the homepage.
# Composer
Use composer to get the bundle
composer require "a5sys/logged-in-redirection-bundle"
# Activate the bundle
In the AppKernel, activate the bundle
public function registerBundles()
{
$bundles = array(
...
new A5sys\LoggedInRedirectionBundle\LoggedInRedirectionBundle(),# The configuration
You have to add the configuration to your config.yml:
logged_in_redirection:
route_name: "fos_user_security_login" #the name of the route to check
redirect_route_name: "homepage" # the name of the route to redirect