WebhookHandler
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
$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.
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
at line line 90
$this
on($event, callable $listener)
Register a listener callback for a specific event
at line line 103
$this
onAny($listener)
Register a listener callback for all events
at line line 114
receiveHook()
Processes the request, and if valid, emits the appropriate emits