class WebhookHandler

Methods

__construct(string $secret, string $storagePath)

Handler constructor, accepts the secret that authenticates the webhook from GitLab and the directory path for the database.

$this
addReceiver(EventReceiverInterface $receiver)

Register an implementation of EventReceiverInterface

$this
on($event, callable $listener)

Register a listener callback for a specific event

$this
onAny($listener)

Register a listener callback for all events

receiveHook()

Processes the request, and if valid, emits the appropriate emits

Details

at line line 41
__construct(string $secret, string $storagePath)

Handler constructor, accepts the secret that authenticates the webhook from GitLab and the directory path for the database.

Parameters

string $secret
string $storagePath

at line line 68
$this addReceiver(EventReceiverInterface $receiver)

Register an implementation of EventReceiverInterface

If the receiver also implements QueueReceiverInterface, it will get access to the Command Queue

Parameters

EventReceiverInterface $receiver

Return Value

$this

at line line 90
$this on($event, callable $listener)

Register a listener callback for a specific event

Parameters

$event
callable $listener

Return Value

$this

at line line 103
$this onAny($listener)

Register a listener callback for all events

Parameters

$listener

Return Value

$this

at line line 114
receiveHook()

Processes the request, and if valid, emits the appropriate emits