class Handler (View source)

Represent a generic handler - a Closure or a class method to be resolved from the service container

Methods

__construct(string|Closure $raw_handler, string|null $default_method = null)

Constructor

array|Closure|null
get()

Get the parsed handler

mixed
execute()

Execute the parsed handler with any provided arguments and return the result

Details

__construct(string|Closure $raw_handler, string|null $default_method = null)

Constructor

Parameters

string|Closure $raw_handler
string|null $default_method

Exceptions

Exception

array|Closure|null get()

Get the parsed handler

Return Value

array|Closure|null

mixed execute()

Execute the parsed handler with any provided arguments and return the result

Return Value

mixed