Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
core\router\route_loader_interface Interface Reference
Inheritance diagram for core\router\route_loader_interface:
core\router\route_loader core\tests\router\mocking_route_loader

Public Member Functions

 configure_routes (App $app)
 Configure all routes for the Application.
 

Public Attributes

string const ROUTE_GROUP_API = '/api/rest/v2'
 The route path prefix to use for API calls.
 
string const ROUTE_GROUP_PAGE = '/'
 The route path prefix to use for API calls.
 
string const ROUTE_GROUP_SHIM = 'shim'
 The route path prefix to use for API calls.
 

Member Function Documentation

◆ configure_routes()

core\router\route_loader_interface::configure_routes ( App $app)

Configure all routes for the Application.

This method returns a set of RouteGroupInterface instances for each route prefix.

Parameters
App$appThe application to configure routes for
Return values
RouteInterface[]|RouteGroupInterface

Implemented in core\router\route_loader, and core\tests\router\mocking_route_loader.


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