You are here

public function ChainRouteCollection::addCollection 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::addCollection()

Adds a route collection at the end of the current set by appending all routes of the added collection.

Parameters

RouteCollection $collection A RouteCollection instance:

Overrides RouteCollection::addCollection

File

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

Class

ChainRouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function addCollection(RouteCollection $collection) {
  $this->routeCollections[] = $collection;
}