Overview

Namespaces

  • Jity
    • HomepageBundle
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
        • Compiler
        • Service
          • Controller
      • Doctrine
        • Extension
          • DBAL
            • Types
      • Entity
      • EventListener
      • Form
        • Extension
      • Tests
        • Controller
      • Twig
        • Extension
  • PHP

Classes

  • ControllerListener
  • LoginSuccessListener
  • LogoutSuccessListener
  • SitemapListener
  • Overview
  • Namespace
  • Class
  • Tree

Class LoginSuccessListener

LoginSuccessListener

Listener for auth login events.

Jity\HomepageBundle\EventListener\LoginSuccessListener implements Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface
Namespace: Jity\HomepageBundle\EventListener
Author: Hermann Mayer <hermann.mayer92@gmail.com>
Uses: AuthenticationSuccessHandlerInterface
DI\Service("jity.listener.login.success")
DI\Tag("kernel.event_listener",: attributes={"event" = "security.authentication.success"})
Located at Jity/HomepageBundle/EventListener/LoginSuccessListener.php
Methods summary
public
# __construct( mixed $session, mixed $router )

__construct

__construct

Initalize a new ControllerListener instance.

Parameters

$session
mixed
$session DI Injected Request Object
$router
mixed
$router DI Injected Router

DI\InjectParams({

"session" = @DI\Inject("session"), "router" = @DI\Inject("router") })
public Symfony\Component\HttpFoundation\RedirectResponse
# onSecurityAuthenticationSuccess( Symfony\Component\Security\Core\Event\AuthenticationEvent $event )

onSecurityAuthenticationSuccess

onSecurityAuthenticationSuccess

Method to run on auth success (login) event.

Parameters

$event
Symfony\Component\Security\Core\Event\AuthenticationEvent
$event Auth Event

Returns

Symfony\Component\HttpFoundation\RedirectResponse
public Symfony\Component\HttpFoundation\RedirectResponse
# onAuthenticationSuccess( Symfony\Component\HttpFoundation\Request $request, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token )

onAuthenticationSuccess

onAuthenticationSuccess

Method to run on auth success (login) event.

Parameters

$request
Symfony\Component\HttpFoundation\Request
$request Request Object
$token
Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$token Auth Token

Returns

Symfony\Component\HttpFoundation\RedirectResponse
public Symfony\Component\HttpFoundation\RedirectResponse
# redirect( )

redirect

redirect

Redirect the user to a default place or to a run-time configured place.

Returns

Symfony\Component\HttpFoundation\RedirectResponse
API documentation generated by ApiGen 2.8.0