You are here

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

Overrides RouteCollection::__clone

File

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

Class

ChainRouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function __clone() {
  foreach ($this->routeCollections as $routeCollection) {
    $this->routeCollections[] = clone $routeCollection;
  }
}