HandlerResolver (Contracts)

HandlerResolver

interface HandlerResolver (View source)

Methods

mixed resolveHandler(mixed $command)

Get the handler instance for the given command.

string getHandlerClass(mixed $command)

Get the handler class for the given command.

string getHandlerMethod(mixed $command)

Get the handler method for the given command.

void maps(array $commands)

Register command to handler mappings.

void mapUsing(Closure $mapper)

Register a fallback mapper callback.

Details

mixed resolveHandler(mixed $command)

Get the handler instance for the given command.

Parameters

mixed $command

Return Value

mixed

string getHandlerClass(mixed $command)

Get the handler class for the given command.

Parameters

mixed $command

Return Value

string

string getHandlerMethod(mixed $command)

Get the handler method for the given command.

Parameters

mixed $command

Return Value

string

void maps(array $commands)

Register command to handler mappings.

Parameters

array $commands

Return Value

void

void mapUsing(Closure $mapper)

Register a fallback mapper callback.

Parameters

Closure $mapper

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Contracts/Bus/HandlerResolver.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部