Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
Slim\Middleware\RoutingMiddleware Class Reference
Inheritance diagram for Slim\Middleware\RoutingMiddleware:
Psr\Http\Server\MiddlewareInterface

Public Member Functions

 __construct (RouteResolverInterface $routeResolver, RouteParserInterface $routeParser)
 
 performRouting (ServerRequestInterface $request)
 Perform routing.
 
 process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Protected Member Functions

 resolveRoutingResultsFromRequest (ServerRequestInterface $request)
 Resolves the route from the given request.
 

Protected Attributes

RouteParserInterface $routeParser
 
RouteResolverInterface $routeResolver
 

Member Function Documentation

◆ performRouting()

Slim\Middleware\RoutingMiddleware::performRouting ( ServerRequestInterface $request)

Perform routing.

Parameters
ServerRequestInterface$requestPSR7 Server Request
Exceptions
HttpNotFoundException
HttpMethodNotAllowedException
RuntimeException

◆ process()

Slim\Middleware\RoutingMiddleware::process ( ServerRequestInterface $request,
RequestHandlerInterface $handler )
Exceptions
HttpNotFoundException
HttpMethodNotAllowedException
RuntimeException

Implements Psr\Http\Server\MiddlewareInterface.


The documentation for this class was generated from the following file: