PHP 클래스 Spatie\SlashCommand\Handlers\CatchAll

상속: extends BaseHandler
파일 보기 프로젝트 열기: spatie/laravel-slack-slash-command

공개 메소드들

메소드 설명
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