class SimpleFormFactory extends FormLoginFactory

Properties

protected $options from AbstractFactory
protected $defaultSuccessHandlerOptions from AbstractFactory
protected $defaultFailureHandlerOptions from AbstractFactory

Methods

array
create(ContainerBuilder $container, string $id, array $config, $userProviderId, $defaultEntryPointId)

Configures the container services required to use the authentication listener.

addConfiguration(NodeDefinition $node)

No description

addOption($name, $default = null)

No description

string
createAuthProvider(ContainerBuilder $container, string $id, array $config, string $userProviderId)

Subclasses must return the id of a service which implements the AuthenticationProviderInterface.

string
getListenerId()

Subclasses must return the id of the abstract listener template.

string
createEntryPoint(ContainerBuilder $container, string $id, array $config, $defaultEntryPoint)

Subclasses may create an entry point of their as they see fit. The default implementation does not change the default entry point.

bool
isRememberMeAware($config)

Subclasses may disable remember-me features for the listener, by always returning false from this method.

createListener($container, $id, $config, $userProvider)

No description

createAuthenticationSuccessHandler($container, $id, $config)

No description

createAuthenticationFailureHandler($container, $id, $config)

No description

getSuccessHandlerId($id)

No description

getFailureHandlerId($id)

No description

__construct()

No description

string
getPosition()

Defines the position at which the provider is called.

string
getKey()

Defines the configuration key used to reference the provider in the firewall configuration.

Details

in AbstractFactory at line 50
array create(ContainerBuilder $container, string $id, array $config, $userProviderId, $defaultEntryPointId)

Configures the container services required to use the authentication listener.

Parameters

ContainerBuilder $container
string $id The unique id of the firewall
array $config The options array for the listener
$userProviderId
$defaultEntryPointId

Return Value

array containing three values: - the provider id - the listener id - the entry point id

at line 36
addConfiguration(NodeDefinition $node)

Parameters

NodeDefinition $node

in AbstractFactory at line 92
final addOption($name, $default = null)

Parameters

$name
$default

at line 50
protected string createAuthProvider(ContainerBuilder $container, string $id, array $config, string $userProviderId)

Subclasses must return the id of a service which implements the AuthenticationProviderInterface.

Parameters

ContainerBuilder $container
string $id The unique id of the firewall
array $config The options array for this listener
string $userProviderId The id of the user provider

Return Value

string never null, the id of the authentication provider

at line 45
protected string getListenerId()

Subclasses must return the id of the abstract listener template.

Listener definitions should inherit from the AbstractAuthenticationListener like this:

In the above case, this method would return "my.listener.id".

Return Value

string

in FormLoginFactory at line 87
protected string createEntryPoint(ContainerBuilder $container, string $id, array $config, $defaultEntryPoint)

Subclasses may create an entry point of their as they see fit. The default implementation does not change the default entry point.

Parameters

ContainerBuilder $container
string $id
array $config
$defaultEntryPoint

Return Value

string the entry point id

in AbstractFactory at line 149
protected bool isRememberMeAware($config)

Subclasses may disable remember-me features for the listener, by always returning false from this method.

Parameters

$config

Return Value

bool Whether a possibly configured RememberMeServices should be set for this listener

at line 64
protected createListener($container, $id, $config, $userProvider)

Parameters

$container
$id
$config
$userProvider

in AbstractFactory at line 169
protected createAuthenticationSuccessHandler($container, $id, $config)

Parameters

$container
$id
$config

in AbstractFactory at line 188
protected createAuthenticationFailureHandler($container, $id, $config)

Parameters

$container
$id
$config

in AbstractFactory at line 205
protected getSuccessHandlerId($id)

Parameters

$id

in AbstractFactory at line 210
protected getFailureHandlerId($id)

Parameters

$id

at line 24
__construct()

in FormLoginFactory at line 36
string getPosition()

Defines the position at which the provider is called.

Possible values: pre_auth, form, http, and remember_me.

Return Value

string

at line 31
string getKey()

Defines the configuration key used to reference the provider in the firewall configuration.

Return Value

string