PHP Class REBELinBLUE\Deployer\Http\Webhooks\Gitlab

Inheritance: extends Webhook
Show file Open project: rebelinblue/deployer

Public Methods

Method Description
handlePush ( ) : mixed Parses the request for a push webhook body.
isRequestOrigin ( ) : boolean Determines whether the request was from Gitlab.

Method Details

handlePush() public method

Parses the request for a push webhook body.
public handlePush ( ) : mixed
return mixed Either an array of parameters for the deployment config, or false if it is invalid.

isRequestOrigin() public method

Determines whether the request was from Gitlab.
public isRequestOrigin ( ) : boolean
return boolean