Index Documentation

Routing

Table of Contents

Interfaces

IRouteHandler
Provides the interface for IRouter::register().
IRouter

Classes

Route
Provides an attribute for marking methods in a class as routes.
RouteCallable
Stack of callables and arguments for route responses.
RouteHandler
Provides an abstract class version of IRouteHandler that already includes the trait as well, letting you only have to use one use statement rather than two!
RouteMethodNotSupportedException
Exception thrown when an unsupported request method is invoked. (HTTP 405)
RoutePathNotFoundException
Exception thrown when a path does not resolve to a route. (HTTP 404)
Router
Provides an application router.

Traits

RouteHandlerTrait
Provides an implementation of IRouteHandler::registerRoutes that uses the attributes.

        
On this page

Search results