mediatekformation

RegisterEventListenersAndSubscribersPass
in package
implements CompilerPassInterface

Registers event listeners and subscribers to the available doctrine connections.

Tags
author

Jeremy Mikola jmikola@gmail.com

author

Alexander iam.asm89@gmail.com

author

David Maicher mail@dmaicher.de

Interfaces, Classes, Traits and Enums

CompilerPassInterface
Interface that must be implemented by compilation passes.

Table of Contents

$connections  : mixed
$eventManagers  : mixed
$managerTemplate  : mixed
$tagPrefix  : mixed
__construct()  : mixed
process()  : mixed
You can modify the container here before it is dumped to PHP code.
addTaggedListeners()  : mixed
addTaggedSubscribers()  : mixed
findAndSortTags()  : array<string|int, mixed>
Finds and orders all service tags with the given name by their priority.
getEventManagerDef()  : mixed

Properties

Methods

__construct()

public __construct(string $connections, string $managerTemplate, string $tagPrefix) : mixed
Parameters
$connections : string

Parameter ID for connections

$managerTemplate : string

sprintf() template for generating the event manager's service ID for a connection name

$tagPrefix : string

Tag prefix for listeners and subscribers

Return values
mixed

findAndSortTags()

Finds and orders all service tags with the given name by their priority.

private findAndSortTags(string $tagName, ContainerBuilder $container) : array<string|int, mixed>

The order of additions must be respected for services having the same priority, and knowing that the \SplPriorityQueue class does not respect the FIFO method, we should not use this class.

Parameters
$tagName : string
$container : ContainerBuilder
Tags
see
https://bugs.php.net/53710
see
https://bugs.php.net/60926
Return values
array<string|int, mixed>

Search results