Webhook
extends Facade
in package
Table of Contents
Properties
- $container : Container
- $instance : mixed
Methods
- __callStatic() : mixed
- call() : void
- getInstance() : mixed
- get service instance
- setContainer() : void
- validateUrlScheme() : bool
- validateUrlWhiteList() : bool
- getServiceAlias() : string
- getServiceInstance() : mixed
- isCache() : bool
Properties
$container
protected
static Container
$container
$instance
protected
static mixed
$instance
Methods
__callStatic()
public
static __callStatic(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
call()
public
static call(int $bid, string $type, array<string|int, mixed>|string $events[, array<string|int, mixed> $args = = '[]' ]) : void
Webhookを実行
Parameters
- $bid : int
- $type : string
- $events : array<string|int, mixed>|string
- $args : array<string|int, mixed> = = '[]'
getInstance()
get service instance
public
static getInstance() : mixed
setContainer()
public
static setContainer(Container $container) : void
Parameters
- $container : Container
validateUrlScheme()
public
static validateUrlScheme(string $url) : bool
URLのスキーマが http or https か確認
Parameters
- $url : string
Return values
boolvalidateUrlWhiteList()
public
static validateUrlWhiteList(string $url) : bool
URLのホストがホワイトリストに含まれるか確認
Parameters
- $url : string
Return values
boolgetServiceAlias()
protected
static getServiceAlias() : string
Return values
stringgetServiceInstance()
protected
static getServiceInstance(string $alias) : mixed
Parameters
- $alias : string
isCache()
protected
static isCache() : bool