# RouterInterface

Chevere\Interfaces\Router\RouterInterface

view source (opens new window)

# Description

Describes the component in charge of handling routing.

# Methods

# withAddedRoute

Return an instance with the specified added $route.

Parameters

  • group: string
  • route: Route/RouteInterface.md

Throws

Return

self

This method MUST retain the state of the current instance, and return an instance that contains the specified added $route.


# index

Provides access to the index instance.


# routes

Provides access to the routes instance.


# routeCollector

Provides access to the route collector instance.

Return

FastRoute\RouteCollector


Last Updated: 1/11/2022, 3:21:34 PM