RoutingHandler
in package
implements RequestHandlerInterface

Handles request routing for the application.

Table of Contents

Interfaces

RequestHandlerInterface

Methods

__construct()  : mixed
handle()  : ResponseInterface
Locates and executes the registered route handler.

Methods

__construct()

public __construct(RouteMap $routeRegistry, ResponseFactoryInterface $responseFactory, StreamFactoryInterface $streamFactory, ModelResolverInterface $modelResolver, AuthorizationChecker $authChecker) : mixed
Parameters
$routeRegistry : RouteMap
$responseFactory : ResponseFactoryInterface
$streamFactory : StreamFactoryInterface
$modelResolver : ModelResolverInterface
$authChecker : AuthorizationChecker

handle()

Locates and executes the registered route handler.

public handle(ServerRequestInterface $request) : ResponseInterface

If a handler for the route cannot be located, a "Not Found" response will be returned.

Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

        
On this page

Search results