You are here

public function ChainRouteCollection::add in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/ChainRouteCollection.php \Symfony\Cmf\Component\Routing\ChainRouteCollection::add()

Adds a route.

Parameters

string $name The route name:

Route $route A Route instance:

Overrides RouteCollection::add

File

vendor/symfony-cmf/routing/ChainRouteCollection.php, line 72

Class

ChainRouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function add($name, Route $route) {
  $this
    ->createInternalCollection();
  $this->routeCollection
    ->add($name, $route);
}