PHP Class Spatie\SlashCommand\Handlers\CatchAll

Inheritance: extends BaseHandler
Afficher le fichier Open project: spatie/laravel-slack-slash-command

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
containsHelpHandler ( Collection $alternativeHandlers ) : boolean
findAlternativeHandlers ( string $command ) : Collection
findInNamespace ( Collection $handlers, string $command ) : Collection
getCommandListAttachment ( Collection $handlers ) : Attachment

Method Details

canHandle() public méthode

If this function returns true, the handle method will get called.
public canHandle ( Request $request ) : boolean
$request Spatie\SlashCommand\Request
Résultat boolean

containsHelpHandler() protected méthode

protected containsHelpHandler ( Collection $alternativeHandlers ) : boolean
$alternativeHandlers Illuminate\Support\Collection
Résultat boolean

findAlternativeHandlers() protected méthode

protected findAlternativeHandlers ( string $command ) : Collection
$command string
Résultat Illuminate\Support\Collection

findInNamespace() protected méthode

protected findInNamespace ( Collection $handlers, string $command ) : Collection
$handlers Illuminate\Support\Collection
$command string
Résultat Illuminate\Support\Collection

getCommandListAttachment() protected méthode

protected getCommandListAttachment ( Collection $handlers ) : Attachment
$handlers Illuminate\Support\Collection
Résultat Spatie\SlashCommand\Attachment

handle() public méthode

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
Résultat Spatie\SlashCommand\Response