# RouterInterface

Chevere\Interfaces\Router\RouterInterface

view source

# Description

Describes the component in charge of handling routing.

# Methods

# withAddedRoutable()

Return an instance with the specified added $routable.

# Parameters

  1. RoutableInterface $routable
  2. string $group

THROWS

RETURN

RouterInterface

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.


# routables()

Provides access to the routables instance.


# routeCollector()

Provides access to the route collector instance.

RETURN

FastRoute\RouteCollector


Last Updated: 8/2/2020, 1:36:58 AM