PHP Class Mpociot\CaptainHook\CaptainHookServiceProvider

Inheritance: extends Illuminate\Support\ServiceProvider
Datei anzeigen Open project: mpociot/captainhook

Protected Properties

Property Type Description
$cache Illuminate\Contracts\Cache\Repository
$client GuzzleHttp\Client
$config Illuminate\Contracts\Config\Repository
$listeners array The registered event listeners.
$webhooks array All registered webhooks.

Public Methods

Method Description
boot ( ) Bootstrap.
getCache ( ) : Illuminate\Contracts\Cache\Repository
getWebhooks ( ) : Collection
handleEvent ( $eventData ) Event listener.
register ( ) : void Register the service provider.
setCache ( Illuminate\Contracts\Cache\Repository $cache )
setClient ( GuzzleHttp\ClientInterface $client )
setConfig ( Illuminate\Contracts\Config\Repository $config )
setListeners ( array $listeners )
setWebhooks ( array $webhooks )

Protected Methods

Method Description
publishConfig ( ) Publish configuration file.
publishMigration ( ) Publish migration.
publishSparkResources ( )
registerCommands ( ) Register the artisan commands.
registerEventListeners ( ) Register all active event listeners.
registerRoutes ( ) Register predefined routes used for Spark.

Method Details

boot() public method

Bootstrap.
public boot ( )

getCache() public method

public getCache ( ) : Illuminate\Contracts\Cache\Repository
return Illuminate\Contracts\Cache\Repository

getWebhooks() public method

public getWebhooks ( ) : Collection
return Illuminate\Support\Collection

handleEvent() public method

Event listener.
public handleEvent ( $eventData )
$eventData

publishConfig() protected method

Publish configuration file.
protected publishConfig ( )

publishMigration() protected method

Publish migration.
protected publishMigration ( )

publishSparkResources() protected method

protected publishSparkResources ( )

register() public method

Register the service provider.
public register ( ) : void
return void

registerCommands() protected method

Register the artisan commands.
protected registerCommands ( )

registerEventListeners() protected method

Register all active event listeners.
protected registerEventListeners ( )

registerRoutes() protected method

Register predefined routes used for Spark.
protected registerRoutes ( )

setCache() public method

public setCache ( Illuminate\Contracts\Cache\Repository $cache )
$cache Illuminate\Contracts\Cache\Repository

setClient() public method

public setClient ( GuzzleHttp\ClientInterface $client )
$client GuzzleHttp\ClientInterface

setConfig() public method

public setConfig ( Illuminate\Contracts\Config\Repository $config )
$config Illuminate\Contracts\Config\Repository

setListeners() public method

public setListeners ( array $listeners )
$listeners array

setWebhooks() public method

public setWebhooks ( array $webhooks )
$webhooks array

Property Details

$cache protected_oe property

protected Repository,Illuminate\Contracts\Cache $cache
return Illuminate\Contracts\Cache\Repository

$client protected_oe property

protected Client,GuzzleHttp $client
return GuzzleHttp\Client

$config protected_oe property

protected Repository,Illuminate\Contracts\Config $config
return Illuminate\Contracts\Config\Repository

$listeners protected_oe property

The registered event listeners.
protected array $listeners
return array

$webhooks protected_oe property

All registered webhooks.
protected array $webhooks
return array