Symfony2 API
Class

Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass\RegisterEventListenersAndSubscribersPass

class RegisterEventListenersAndSubscribersPass implements CompilerPassInterface

Registers event listeners and subscribers to the available doctrine connections.

Methods

__construct(string $connections, string $managerTemplate, string $tagPrefix)

Constructor.

process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

Details

at line 40
public __construct(string $connections, string $managerTemplate, string $tagPrefix)

Constructor.

Parameters

string $connections Parameter ID for connections
string $managerTemplate sprintf() template for generating the event manager's service ID for a connection name
string $tagPrefix Tag prefix for listeners and subscribers

at line 50
public process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

Parameters

ContainerBuilder $container