class DispatcherRouteCallback extends RouteCallback (View source)

Properties

protected $callback from  RouteCallback
protected ResponseFactoryInterface $factory

Methods

execute(Request $request, Route $route = null, $parameters = [])

No description

__construct($callback, ResponseFactoryInterface $factory)

DispatcherRouteCallback constructor.

static 
getRouteAttributes($callback)

No description

Response
sendResponse(View $view, int $code = 200) deprecated

No description

Response
sendPageNotFound(Request $request) deprecated

No description

Response
sendPageForbidden(Request $request, $currentPage) deprecated

No description

Details

execute(Request $request, Route $route = null, $parameters = [])

No description

Parameters

Request $request
Route $route
$parameters

__construct($callback, ResponseFactoryInterface $factory)

DispatcherRouteCallback constructor.

Parameters

$callback
ResponseFactoryInterface $factory

static getRouteAttributes($callback)

No description

Parameters

$callback

protected Response sendResponse(View $view, int $code = 200) deprecated

deprecated Use CollectionResponseFactory

No description

Parameters

View $view
int $code

Return Value

Response

protected Response sendPageNotFound(Request $request) deprecated

deprecated Use CollectionResponseFactory

No description

Parameters

Request $request

Return Value

Response

protected Response sendPageForbidden(Request $request, $currentPage) deprecated

deprecated Use CollectionResponseFactory

No description

Parameters

Request $request
$currentPage

Return Value

Response