PHP Class Elcodi\Common\FirewallBundle\CompilerPass\FirewallCompilerPass

Collect services marked with a tag and connects them to firewall listeners
Author: Berny Cantos ([email protected])
Inheritance: implements Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
Afficher le fichier Open project: elcodi/bamboo

Méthodes publiques

Méthode Description
__construct ( string $tagName = 'firewall_listener' ) Constructor
process ( ContainerBuilder $container ) : null Attach event listeners and firewall listeners to firewalls

Private Methods

Méthode Description
attachEvents ( ContainerBuilder $container, string $provider_key, array $events ) : string Add event listeners to be attached by demand on firewall activation
attachListeners ( ContainerBuilder $container, string $providerKey, array $listeners ) Sort listeners by priority and then attach them to the firewall
collectListenersByProviderKey ( ContainerBuilder $container ) : array Group listeners by provider key, type and priority (when needed)
getProviderKey ( ContainerBuilder $container, array $tag, string $listenerId ) : string Get the firewall provider key from a tag attribute, if it can found one
processEvent ( ContainerBuilder $container, string $listenerId, array $tag, $priority ) : array Process an event and generates injection for the listener

Method Details

__construct() public méthode

Constructor
public __construct ( string $tagName = 'firewall_listener' )
$tagName string Name of the tag to collect

process() public méthode

Attach event listeners and firewall listeners to firewalls
public process ( ContainerBuilder $container ) : null
$container Symfony\Component\DependencyInjection\ContainerBuilder Container
Résultat null