PHP Class Mpociot\CaptainHook\CaptainHookServiceProvider

Inheritance: extends Illuminate\Support\ServiceProvider
Afficher le fichier Open project: mpociot/captainhook

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode 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 méthode

Bootstrap.
public boot ( )

getCache() public méthode

public getCache ( ) : Illuminate\Contracts\Cache\Repository
Résultat Illuminate\Contracts\Cache\Repository

getWebhooks() public méthode

public getWebhooks ( ) : Collection
Résultat Illuminate\Support\Collection

handleEvent() public méthode

Event listener.
public handleEvent ( $eventData )
$eventData

publishConfig() protected méthode

Publish configuration file.
protected publishConfig ( )

publishMigration() protected méthode

Publish migration.
protected publishMigration ( )

publishSparkResources() protected méthode

protected publishSparkResources ( )

register() public méthode

Register the service provider.
public register ( ) : void
Résultat void

registerCommands() protected méthode

Register the artisan commands.
protected registerCommands ( )

registerEventListeners() protected méthode

Register all active event listeners.
protected registerEventListeners ( )

registerRoutes() protected méthode

Register predefined routes used for Spark.
protected registerRoutes ( )

setCache() public méthode

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

setClient() public méthode

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

setConfig() public méthode

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

setListeners() public méthode

public setListeners ( array $listeners )
$listeners array

setWebhooks() public méthode

public setWebhooks ( array $webhooks )
$webhooks array

Property Details

$cache protected_oe property

protected Repository,Illuminate\Contracts\Cache $cache
Résultat Illuminate\Contracts\Cache\Repository

$client protected_oe property

protected Client,GuzzleHttp $client
Résultat GuzzleHttp\Client

$config protected_oe property

protected Repository,Illuminate\Contracts\Config $config
Résultat Illuminate\Contracts\Config\Repository

$listeners protected_oe property

The registered event listeners.
protected array $listeners
Résultat array

$webhooks protected_oe property

All registered webhooks.
protected array $webhooks
Résultat array