# RouterInterface
Chevere\Interfaces\Router\RouterInterface
# Description
Describes the component in charge of handling routing.
# Methods
# withAddedRoutable()
Return an instance with the specified added $routable
.
# Parameters
- RoutableInterface
$routable
- string
$group
THROWS
- InvalidArgumentException if
$group
is invalid. - OverflowException if
$routable
has been already added.
RETURN
self
This method MUST retain the state of the current instance, and return
an instance that contains the specified added $routable
.
# index()
Provides access to the index instance.
RETURN
# routables()
Provides access to the routables instance.
RETURN
# routeCollector()
Provides access to the route collector instance.
RETURN
FastRoute\RouteCollector