BackendRouteInitialization implements MiddlewareInterface

Injects the Router and tries to match the current request with a configured backend route. The available backend routes were added in the corresponding dependency injection factories, which load and process the module and route configuration files

  • Configuration/Backend/{,Ajax}Routes.php
  • Configuration/Backend/Modules.php

from each extension.

After this middleware, a "Route" object is available as attribute in the Request object.

Internal

Table of Contents

Interfaces

MiddlewareInterface

Properties

$requestContextFactory  : RequestContextFactory
$router  : Router
$uriBuilder  : UriBuilder

Methods

__construct()  : mixed
process()  : ResponseInterface
Resolve the route based on the URL path part, and also resolves a Route object

Properties

Methods

process()

Resolve the route based on the URL path part, and also resolves a Route object

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface
$handler : RequestHandlerInterface
Return values
ResponseInterface

        
On this page

Search results