Method |
Description |
|
__callStatic ( $method, $arguments ) |
Define a route using the method name as
the request method to listen for |
|
__construct ( $callbacks, $args = [] ) |
Create a new instance of the Route class |
|
action ( $name, $callback ) |
Register a action on the router |
|
after ( $response ) : object | null |
Calls after actions |
|
before ( ) : object | null |
Calls before actions |
|
callback ( $name ) : object | null |
Run actions |
|
collection ( $actions, $definitions ) |
Start a collection of routes with common actions |
|
not_found ( $callbacks ) |
Register the 404 not found callback |
|
register ( $method, $patterns, $arguments ) |
Register a route on the router |
|
run ( ) : object |
Calls the route actions and returns a response object |
|