class RequireAuthentication implements InterceptorInterface (View source)

This security interceptor invokes the authentication of the authentication tokens in the security context.

It is usally used by the firewall to define secured request that need proper authentication.

Properties

protected AuthenticationManagerInterface $authenticationManager

Methods

__construct(AuthenticationManagerInterface $authenticationManager)

Constructor.

bool
invoke()

Invokes the the authentication, if needed.

Details

__construct(AuthenticationManagerInterface $authenticationManager)

Constructor.

Parameters

AuthenticationManagerInterface $authenticationManager

The authentication Manager

bool invoke()

Invokes the the authentication, if needed.

Return Value

bool

true if the security checks was passed