Skip to content

Instantly share code, notes, and snippets.

🔊
I may be slow to respond.

Micha Hobert Isengo1989

🔊
I may be slow to respond.
Block or report user

Report or block Isengo1989

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Isengo1989
Isengo1989 / LoginSuccessHandler.php
Last active Nov 19, 2018 — forked from marydn/LoginSuccessHandler.php
Custom URL redirect by role after success login on Symfony 2 using a service listener without FOSUser Bundle.
View LoginSuccessHandler.php
# src/Security/LoginFormAuthenticator.php
<?php
namespace App\Security;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
You can’t perform that action at this time.