Symfony2 API
Class

Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener

class AnonymousAuthenticationListener implements ListenerInterface

AnonymousAuthenticationListener automatically adds a Token if none is already present.

Methods

__construct(SecurityContextInterface $context, $key, LoggerInterface $logger = null)

handle(GetResponseEvent $event)

Handles anonymous authentication.

Details

at line 31
public __construct(SecurityContextInterface $context, $key, LoggerInterface $logger = null)

Parameters

SecurityContextInterface $context
$key
LoggerInterface $logger

at line 43
public handle(GetResponseEvent $event)

Handles anonymous authentication.

Parameters

GetResponseEvent $event A GetResponseEvent instance