AppRouter
extends RampageRequestHandler
in package
implements
MiddlewareInterface, RequestHandlerInterface
AppRouter middleware
Purpose:
Run the router for the app from the attribute Retrieve the route specific stack If no route found, present a helpful but security-wise acceptable response
Requires Attributes:
- app
- prefix
Sets Attributes:
Table of Contents
Interfaces
- MiddlewareInterface
- RequestHandlerInterface
Properties
- $injector : Horde_Injector
- $registry : Horde_Registry
- $router : Horde_Routes_Mapper
Methods
- __construct() : mixed
- process() : ResponseInterface
- Route a request for a horde app
Properties
$injector
private
Horde_Injector
$injector
$registry
private
Horde_Registry
$registry
$router
private
Horde_Routes_Mapper
$router
Methods
__construct()
public
__construct(Horde_Registry $registry, Horde_Routes_Mapper $router, Horde_Injector $injector) : mixed
Parameters
- $registry : Horde_Registry
- $router : Horde_Routes_Mapper
- $injector : Horde_Injector
process()
Route a request for a horde app
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Depends on the AppFinder running first This middleware really only works with the Rampage Runner
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface