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. Additionally, the request handler (e.g. a controller) is available as "target" in the PSR-7 request object.

Internal

Table of Contents

Interfaces

MiddlewareInterface

Properties

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

Methods

__construct()  : mixed
process()  : ResponseInterface
Resolve the &route (or &M) GET/POST parameter, and also resolves a Route object

Properties

Methods

process()

Resolve the &route (or &M) GET/POST parameter, 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