Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
Slim\Routing\RouteCollectorProxy Class Reference
Inheritance diagram for Slim\Routing\RouteCollectorProxy:
Slim\Interfaces\RouteCollectorProxyInterface Slim\App

Public Member Functions

 __construct (ResponseFactoryInterface $responseFactory, CallableResolverInterface $callableResolver, ?ContainerInterface $container=null, ?RouteCollectorInterface $routeCollector=null, string $groupPattern='')
 
 any (string $pattern, $callable)
 {Add route for any HTTP method.
Parameters
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}
 
 delete (string $pattern, $callable)
 {Add DELETE route.
Parameters
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}
 
 get (string $pattern, $callable)
 {Add GET route.
Parameters
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}
 
 getBasePath ()
 {Get the RouteCollectorProxy's base path.}
 
 getCallableResolver ()
 {}
 
 getContainer ()
 {}
 
 getResponseFactory ()
 {}
 
 getRouteCollector ()
 {}
 
 group (string $pattern, $callable)
 {Route Groups.This method accepts a route pattern and a callback. All route declarations in the callback will be prepended by the group(s) that it is in.

Parameters
string | callable$callable
}
 
 map (array $methods, string $pattern, $callable)
 {Add route with multiple methods.
Parameters
string[]$methodsNumeric array of HTTP method names
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}
 
 options (string $pattern, $callable)
 {Add OPTIONS route.
Parameters
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}
 
 patch (string $pattern, $callable)
 {Add PATCH route.
Parameters
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}
 
 post (string $pattern, $callable)
 {Add POST route.
Parameters
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}
 
 put (string $pattern, $callable)
 {Add PUT route.
Parameters
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}
 
 redirect (string $from, $to, int $status=302)
 {Add a route that sends an HTTP redirect.
Parameters
string | UriInterface$to
}
 
 setBasePath (string $basePath)
 {Set the RouteCollectorProxy's base path.}
 

Protected Attributes

CallableResolverInterface $callableResolver
 
ContainerInterface $container = null
 
string $groupPattern
 
ResponseFactoryInterface $responseFactory
 
RouteCollectorInterface $routeCollector
 

Member Function Documentation

◆ any()

Slim\Routing\RouteCollectorProxy::any ( string $pattern,
$callable )

{Add route for any HTTP method.

Parameters
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}

Implements Slim\Interfaces\RouteCollectorProxyInterface.

◆ delete()

Slim\Routing\RouteCollectorProxy::delete ( string $pattern,
$callable )

{Add DELETE route.

Parameters
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}

Implements Slim\Interfaces\RouteCollectorProxyInterface.

◆ get()

Slim\Routing\RouteCollectorProxy::get ( string $pattern,
$callable )

{Add GET route.

Parameters
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}

Implements Slim\Interfaces\RouteCollectorProxyInterface.

◆ getBasePath()

Slim\Routing\RouteCollectorProxy::getBasePath ( )

◆ getCallableResolver()

Slim\Routing\RouteCollectorProxy::getCallableResolver ( )

◆ getContainer()

Slim\Routing\RouteCollectorProxy::getContainer ( )

◆ getResponseFactory()

Slim\Routing\RouteCollectorProxy::getResponseFactory ( )

◆ getRouteCollector()

Slim\Routing\RouteCollectorProxy::getRouteCollector ( )

◆ group()

Slim\Routing\RouteCollectorProxy::group ( string $pattern,
$callable )

{Route Groups.This method accepts a route pattern and a callback. All route declarations in the callback will be prepended by the group(s) that it is in.

Parameters
string | callable$callable
}

Implements Slim\Interfaces\RouteCollectorProxyInterface.

◆ map()

Slim\Routing\RouteCollectorProxy::map ( array $methods,
string $pattern,
$callable )

{Add route with multiple methods.

Parameters
string[]$methodsNumeric array of HTTP method names
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}

Implements Slim\Interfaces\RouteCollectorProxyInterface.

◆ options()

Slim\Routing\RouteCollectorProxy::options ( string $pattern,
$callable )

{Add OPTIONS route.

Parameters
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}

Implements Slim\Interfaces\RouteCollectorProxyInterface.

◆ patch()

Slim\Routing\RouteCollectorProxy::patch ( string $pattern,
$callable )

{Add PATCH route.

Parameters
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}

Implements Slim\Interfaces\RouteCollectorProxyInterface.

◆ post()

Slim\Routing\RouteCollectorProxy::post ( string $pattern,
$callable )

{Add POST route.

Parameters
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}

Implements Slim\Interfaces\RouteCollectorProxyInterface.

◆ put()

Slim\Routing\RouteCollectorProxy::put ( string $pattern,
$callable )

{Add PUT route.

Parameters
string$patternThe route URI pattern
callable | string$callableThe route callback routine
}

Implements Slim\Interfaces\RouteCollectorProxyInterface.

◆ redirect()

Slim\Routing\RouteCollectorProxy::redirect ( string $from,
$to,
int $status = 302 )

{Add a route that sends an HTTP redirect.

Parameters
string | UriInterface$to
}

Implements Slim\Interfaces\RouteCollectorProxyInterface.

◆ setBasePath()

Slim\Routing\RouteCollectorProxy::setBasePath ( string $basePath)

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