WebhookCompilerPass implements CompilerPassInterface

FinalYes

A compiler pass to wire Messages which can be used as "webhook" into the webhook registry when needed.

Also, if the Message has an Event name as identifier, we automatically register the MessageListener to the ListenerProvider as well, and the MessageFactory can then automatically create the message for us.

What does this mean? If your Message class has one object within the __construct() method, we assume this is an Event class, and we connect to it.

Internal

Table of Contents

Interfaces

CompilerPassInterface

Methods

__construct()  : mixed
process()  : void
getParameterType()  : string|null
Derives the class type of the first argument of a given method.

Methods

__construct()

public __construct(string $tagName) : mixed
Parameters
$tagName : string

process()

public process(ContainerBuilder $container) : void
Parameters
$container : ContainerBuilder

getParameterType()

Derives the class type of the first argument of a given method.

protected getParameterType(string $serviceName, Definition $definition[, string $method = 'createFromEvent' ]) : string|null
Parameters
$serviceName : string
$definition : Definition
$method : string = 'createFromEvent'
Return values
string|null

        
On this page

Search results