class RouteHandler (View source)

Represent a Closure or a controller method to be executed in response to a request

Methods

__construct(string|Closure $handler)

Constructor

get()

Get the handler

ResponseInterface
execute()

Execute the handler

Details

__construct(string|Closure $handler)

Constructor

Parameters

string|Closure $handler

Exceptions

Exception

Handler get()

Get the handler

Return Value

Handler

ResponseInterface execute()

Execute the handler

Return Value

ResponseInterface

Exceptions

Exception