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