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
Afficher le fichier Open project: symfony/symfony Class Usage Examples

Protected Properties

Свойство Type Description
$defaultFailureHandlerOptions
$defaultSuccessHandlerOptions
$options

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

addOption() final public méthode

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

create() public méthode

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

createAuthProvider() abstract protected méthode

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
Résultat string never null, the id of the authentication provider

createAuthenticationFailureHandler() protected méthode

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

createAuthenticationSuccessHandler() protected méthode

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

createEntryPoint() protected méthode

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
Résultat string the entry point id

createListener() protected méthode

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

getFailureHandlerId() protected méthode

protected getFailureHandlerId ( $id )

getListenerId() abstract protected méthode

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

getSuccessHandlerId() protected méthode

protected getSuccessHandlerId ( $id )

isRememberMeAware() protected méthode

Subclasses may disable remember-me features for the listener, by always returning false from this method.
protected isRememberMeAware ( array $config ) : boolean
$config array
Résultat 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