BackendRouteInitialization implements MiddlewareInterface
Loads ext_tables.php from all extensions, as this is the place where all modules register their routes to the router (additionally to those routes which are loaded in dependency injection factories from Configuration/Backend/{,Ajax}Routes.php).
The route path is then matched inside the Router and then handed into the request.
After this middleware, a "Route" object is available as attribute in the Request object.
Table of Contents
Interfaces
- MiddlewareInterface
Properties
Methods
- __construct() : mixed
- process() : ResponseInterface
- Resolve the &route (or &M) GET/POST parameter, and also resolves a Route object
Properties
$router
protected
Router
$router
Methods
__construct()
public
__construct(Router $router) : mixed
Parameters
- $router : Router
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