Documentation

router

Interfaces, Classes and Traits

Parameters
The parameters a route reads out of a server or URI. This allows the application to gracefully manage the parameters and give them over to the callback function that should replace it.
RewriteRule
A route is a class that rewrites a URL path (route) that matches a route or pattern (old_route) into a new route that the system can use (new_route) to handle the current request.
Routable
The routable class is the base class for both routers and router servers, which can both accept routes and store them. In order to do so, there is a predefined set of functions that are meant to be kept the way they are and a single abstract one that adds the route to the element the way this one decides.
Route
A route is a class that rewrites a URL path (route) that matches a route or pattern (old_route) into a new route that the system can use (new_route) to handle the current request.
Router
Routers are tools that allow your application to listen on alternative urls and attach controllers to different URLs than they would normally do. Please note that enabling a route to a certain controller does not disable it's canonical URL.
RouterResult
The router result object is returned when a route matches (or not) a request.
RoutingMiddleware
The routing middleware is one of the central components of Spitfire, it allows the application to receive the request, and produce a response based on the routes that the developers designed for the application.
URIPattern
The URIPattern class is a wrapper to gather several patterns and test them simultaneously.

Search results