Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
Slim\Routing\RouteResolver Class Reference

RouteResolver instantiates the FastRoute dispatcher and computes the routing results of a given URI and request method. More...

Inheritance diagram for Slim\Routing\RouteResolver:
Slim\Interfaces\RouteResolverInterface

Public Member Functions

 __construct (RouteCollectorInterface $routeCollector, ?DispatcherInterface $dispatcher=null)
 
 computeRoutingResults (string $uri, string $method)
 
 resolveRoute (string $identifier)
 

Protected Attributes

RouteCollectorInterface $routeCollector
 

Detailed Description

RouteResolver instantiates the FastRoute dispatcher and computes the routing results of a given URI and request method.

Member Function Documentation

◆ computeRoutingResults()

Slim\Routing\RouteResolver::computeRoutingResults ( string $uri,
string $method )
Parameters
string$uriShould be $request->getUri()->getPath()

Implements Slim\Interfaces\RouteResolverInterface.

◆ resolveRoute()

Slim\Routing\RouteResolver::resolveRoute ( string $identifier)
Exceptions
RuntimeException

Implements Slim\Interfaces\RouteResolverInterface.


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