PHP Class Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\AbstractFactory

Author: Fabien Potencier ([email protected])
Author: Lukas Kahwe Smith ([email protected])
Author: Johannes M. Schmitt ([email protected])
Inheritance: implements Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\SecurityFactoryInterface
Datei anzeigen Open project: symfony/symfony Class Usage Examples

Protected Properties

Property Type Description
$defaultFailureHandlerOptions
$defaultSuccessHandlerOptions
$options

Public Methods

Method Description
addConfiguration ( Symfony\Component\Config\Definition\Builder\NodeDefinition $node )
addOption ( $name, $default = null )
create ( ContainerBuilder $container, $id, $config, $userProviderId, $defaultEntryPointId )

Protected Methods

Method Description
createAuthProvider ( ContainerBuilder $container, string $id, array $config, string $userProviderId ) : string Subclasses must return the id of a service which implements the AuthenticationProviderInterface.
createAuthenticationFailureHandler ( $container, $id, $config )
createAuthenticationSuccessHandler ( $container, $id, $config )
createEntryPoint ( ContainerBuilder $container, string $id, array $config, string $defaultEntryPointId ) : string Subclasses may create an entry point of their as they see fit. The default implementation does not change the default entry point.
createListener ( $container, $id, $config, $userProvider )
getFailureHandlerId ( $id )
getListenerId ( ) : string Subclasses must return the id of the abstract listener template.
getSuccessHandlerId ( $id )
isRememberMeAware ( array $config ) : boolean Subclasses may disable remember-me features for the listener, by always returning false from this method.

Method Details

addConfiguration() public method

public addConfiguration ( Symfony\Component\Config\Definition\Builder\NodeDefinition $node )
$node Symfony\Component\Config\Definition\Builder\NodeDefinition

addOption() final public method

final public addOption ( $name, $default = null )

create() public method

public create ( ContainerBuilder $container, $id, $config, $userProviderId, $defaultEntryPointId )
$container Symfony\Component\DependencyInjection\ContainerBuilder

createAuthProvider() abstract protected method

Subclasses must return the id of a service which implements the AuthenticationProviderInterface.
abstract protected createAuthProvider ( ContainerBuilder $container, string $id, array $config, string $userProviderId ) : string
$container Symfony\Component\DependencyInjection\ContainerBuilder
$id string The unique id of the firewall
$config array The options array for this listener
$userProviderId string The id of the user provider
return string never null, the id of the authentication provider

createAuthenticationFailureHandler() protected method

protected createAuthenticationFailureHandler ( $container, $id, $config )

createAuthenticationSuccessHandler() protected method

protected createAuthenticationSuccessHandler ( $container, $id, $config )

createEntryPoint() protected method

Subclasses may create an entry point of their as they see fit. The default implementation does not change the default entry point.
protected createEntryPoint ( ContainerBuilder $container, string $id, array $config, string $defaultEntryPointId ) : string
$container Symfony\Component\DependencyInjection\ContainerBuilder
$id string
$config array
$defaultEntryPointId string
return string the entry point id

createListener() protected method

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

getFailureHandlerId() protected method

protected getFailureHandlerId ( $id )

getListenerId() abstract protected method

Listener definitions should inherit from the AbstractAuthenticationListener like this: In the above case, this method would return "my.listener.id".
abstract protected getListenerId ( ) : string
return string

getSuccessHandlerId() protected method

protected getSuccessHandlerId ( $id )

isRememberMeAware() protected method

Subclasses may disable remember-me features for the listener, by always returning false from this method.
protected isRememberMeAware ( array $config ) : boolean
$config array
return boolean Whether a possibly configured RememberMeServices should be set for this listener

Property Details

$defaultFailureHandlerOptions protected_oe property

protected $defaultFailureHandlerOptions

$defaultSuccessHandlerOptions protected_oe property

protected $defaultSuccessHandlerOptions

$options protected_oe property

protected $options