class TracingControllerDispatcherTracing extends TracingRoutingDispatcher implements ControllerDispatcher

Methods

mixed
wrapRouteDispatch(callable $dispatch, Route $route)

Wrap the route dispatch in a tracing span.

__construct(ControllerDispatcher $dispatcher)

Create a new tracing controller dispatcher instance.

mixed
dispatch(Route $route, mixed $controller, string $method)

Dispatch a request to a given controller and method.

array
getMiddleware(mixed $controller, string $method)

Get the middleware for the controller instance.

Details

protected mixed wrapRouteDispatch(callable $dispatch, Route $route)

Wrap the route dispatch in a tracing span.

Parameters

callable $dispatch
Route $route

Return Value

mixed

at line 15
__construct(ControllerDispatcher $dispatcher)

Create a new tracing controller dispatcher instance.

Parameters

ControllerDispatcher $dispatcher

at line 23
mixed dispatch(Route $route, mixed $controller, string $method)

Dispatch a request to a given controller and method.

Parameters

Route $route
mixed $controller
string $method

Return Value

mixed

at line 33
array getMiddleware(mixed $controller, string $method)

Get the middleware for the controller instance.

Parameters

mixed $controller
string $method

Return Value

array