Athena::Routing::Router
Inherits Athena::Routing::Matcher::RequestMatcherInterface < Athena::Routing::RouterInterface < Athena::Routing::Generator::Interface < Athena::Routing::RequestContextAwareInterface < Athena::Routing::Matcher::URLMatcherInterface < Athena::Routing::RequestContextAwareInterface < Reference < Object
Constructors
Instance methods
Generates a URL for the provided route, optionally with the provided params and reference_type.
Generates a URL for the provided route, optionally with the provided params and reference_type.
Tries to match the provided path to its related route.
Returns an ART::Parameters containing the route's defaults and parameters resolved from the path.
Raises an ART::Exception::ResourceNotFound if no route could be matched.
Raises an ART::Exception::MethodNotAllowed if a route exists but not for the current HTTP method.
Tries to match the provided request to its related route.
Returns an ART::Parameters containing the route's defaults and parameters resolved from the request.
Raises an ART::Exception::ResourceNotFound if no route could be matched.
Raises an ART::Exception::MethodNotAllowed if a route exists but not for the request's method.
Tries to match the provided path to its related route.
Returns an ART::Parameters containing the route's defaults and parameters resolved from the path.
Returns nil if no route could be matched or a route exists but not for the current HTTP method.
Tries to match the provided request to its related route.
Returns an ART::Parameters containing the route's defaults and parameters resolved from the request.
Returns nil if no route could be matched or a route exists but not for the request's method.