Router
class Router (View source)
Class for routing requested methods and paths to specific routes.
Methods
route(string $method, string $path)
Routes the given path with the given HTTP request method to a specific route.
string
generateUrl(string $name, array $parameters = [])
Returns the encoded URL for the route with the given name.
Details
at line 26
__construct(RouteDefinitionProvider $provider)
Router constructor.
at line 40
Route
route(string $method, string $path)
Routes the given path with the given HTTP request method to a specific route.
at line 153
string
generateUrl(string $name, array $parameters = [])
Returns the encoded URL for the route with the given name.