PHP Класс Elcodi\Common\FirewallBundle\CompilerPass\FirewallCompilerPass

Collect services marked with a tag and connects them to firewall listeners
Автор: Berny Cantos ([email protected])
Наследование: implements Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $tagName = 'firewall_listener' ) Constructor
process ( ContainerBuilder $container ) : null Attach event listeners and firewall listeners to firewalls

Приватные методы

Метод Описание
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

Описание методов

__construct() публичный Метод

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

process() публичный Метод

Attach event listeners and firewall listeners to firewalls
public process ( ContainerBuilder $container ) : null
$container Symfony\Component\DependencyInjection\ContainerBuilder Container
Результат null