W3cubDocs

/Symfony 2.7

Symfony\Component\Security\Http\Firewall\AccessListener

class AccessListener implements ListenerInterface

AccessListener enforces access control rules.

Methods

__construct(SecurityContextInterface $context, AccessDecisionManagerInterface $accessDecisionManager, AccessMapInterface $map, AuthenticationManagerInterface $authManager)
handle(GetResponseEvent $event)

Handles access authorization.

Details

public __construct(SecurityContextInterface $context, AccessDecisionManagerInterface $accessDecisionManager, AccessMapInterface $map, AuthenticationManagerInterface $authManager)

public handle(GetResponseEvent $event)

Handles access authorization.

Parameters

GetResponseEvent $event A GetResponseEvent instance

Exceptions

AccessDeniedException
AuthenticationCredentialsNotFoundException

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Security/Http/Firewall/AccessListener.html