class BasicFirewallEntry extends FirewallEntry (View source)

BasicFirewallEntry automatize firewall and access-map configuration with a Basic Auth entry point.

Properties

protected string $firewallBasePattern from FirewallEntry
protected string $firewallBasePath from FirewallEntry
protected string $firewallLogin from FirewallEntry
protected string $firewallLogout from FirewallEntry
protected string $firewallLoginCheck from FirewallEntry
protected string $firewallBaseRole from FirewallEntry
protected Container $container from FirewallEntry
protected AuthenticationSuccessHandler $authenticationSuccessHandler from FirewallEntry
protected AuthenticationFailureHandler $authenticationFailureHandler from FirewallEntry
protected array $listeners from FirewallEntry
protected RequestMatcher $requestMatcher from FirewallEntry
protected boolean $useReferer from FirewallEntry
protected string $authenticationSuccessHandlerClass from FirewallEntry
protected string $authenticationFailureHandlerClass from FirewallEntry
protected AccessDeniedHandlerInterface $accessDeniedHandler from FirewallEntry
protected boolean $locked from FirewallEntry

Methods

__construct(Container $container, string $firewallBasePattern, string $firewallBasePath, string|array $firewallBaseRole = 'ROLE_USER')

BasicFirewallEntry constructor.

$this
withAnonymousAuthenticationListener()

Added anonymous listener to enable all visitor to access your firewall entry base pattern.

$this
withAccessDeniedHandler(string $redirectRoute = '', array $redirectParameters = [])

No description

$this
withSwitchUserListener()

No description

$this
withReferer()

No description

RequestMatcher
getRequestMatcher()

No description

bool
hasAuthenticationEntryPoints()

No description

AbstractAuthenticationListener[]
getListeners()

No description

ListenerInterface
getAuthenticationListener()

No description

AuthenticationEntryPointInterface
getAuthenticationEntryPoint(bool $useForward = false)

No description

ExceptionListener
getExceptionListener(bool $useForward = false)

No description

LogoutListener
getLogoutListener()

No description

Details

__construct(Container $container, string $firewallBasePattern, string $firewallBasePath, string|array $firewallBaseRole = 'ROLE_USER')

BasicFirewallEntry constructor.

Parameters

Container $container
string $firewallBasePattern
string $firewallBasePath
string|array $firewallBaseRole

$this withAnonymousAuthenticationListener()

Added anonymous listener to enable all visitor to access your firewall entry base pattern.

Warning: this MUST be the before last listener to work.

Return Value

$this

$this withAccessDeniedHandler(string $redirectRoute = '', array $redirectParameters = [])

Parameters

string $redirectRoute
array $redirectParameters

Return Value

$this

$this withSwitchUserListener()

Return Value

$this

$this withReferer()

Return Value

$this

RequestMatcher getRequestMatcher()

Return Value

RequestMatcher

bool hasAuthenticationEntryPoints()

Return Value

bool

AbstractAuthenticationListener[] getListeners()

Return Value

AbstractAuthenticationListener[]

protected ListenerInterface getAuthenticationListener()

Return Value

ListenerInterface

protected AuthenticationEntryPointInterface getAuthenticationEntryPoint(bool $useForward = false)

Parameters

bool $useForward

Return Value

AuthenticationEntryPointInterface

ExceptionListener getExceptionListener(bool $useForward = false)

Parameters

bool $useForward Use true to forward request instead of redirecting. Be careful, Token will be set to null in sub-request!

Return Value

ExceptionListener

protected LogoutListener getLogoutListener()

Return Value

LogoutListener