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
Show file Open project: elcodi/bamboo

Public Methods

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

Private Methods

Method 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 method

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

process() public method

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