PHP Класс Spatie\SlashCommand\Handlers\CatchAll

Наследование: extends BaseHandler
Показать файл Открыть проект

Открытые методы

Метод Описание
canHandle ( Request $request ) : boolean If this function returns true, the handle method will get called.
handle ( Request $request ) : Response Handle the given request. Remember that Slack expects a response within three seconds after the slash command was issued. If there is more time needed, dispatch a job.

Защищенные методы

Метод Описание
containsHelpHandler ( Collection $alternativeHandlers ) : boolean
findAlternativeHandlers ( string $command ) : Collection
findInNamespace ( Collection $handlers, string $command ) : Collection
getCommandListAttachment ( Collection $handlers ) : Attachment

Описание методов

canHandle() публичный Метод

If this function returns true, the handle method will get called.
public canHandle ( Request $request ) : boolean
$request Spatie\SlashCommand\Request
Результат boolean

containsHelpHandler() защищенный Метод

protected containsHelpHandler ( Collection $alternativeHandlers ) : boolean
$alternativeHandlers Illuminate\Support\Collection
Результат boolean

findAlternativeHandlers() защищенный Метод

protected findAlternativeHandlers ( string $command ) : Collection
$command string
Результат Illuminate\Support\Collection

findInNamespace() защищенный Метод

protected findInNamespace ( Collection $handlers, string $command ) : Collection
$handlers Illuminate\Support\Collection
$command string
Результат Illuminate\Support\Collection

getCommandListAttachment() защищенный Метод

protected getCommandListAttachment ( Collection $handlers ) : Attachment
$handlers Illuminate\Support\Collection
Результат Spatie\SlashCommand\Attachment

handle() публичный Метод

Handle the given request. Remember that Slack expects a response within three seconds after the slash command was issued. If there is more time needed, dispatch a job.
public handle ( Request $request ) : Response
$request Spatie\SlashCommand\Request
Результат Spatie\SlashCommand\Response