You are here

public function RouteCollection::__clone in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/routing/RouteCollection.php \Symfony\Component\Routing\RouteCollection::__clone()
1 method overrides RouteCollection::__clone()
ChainRouteCollection::__clone in vendor/symfony-cmf/routing/ChainRouteCollection.php

File

vendor/symfony/routing/RouteCollection.php, line 38

Class

RouteCollection
A RouteCollection represents a set of Route instances.

Namespace

Symfony\Component\Routing

Code

public function __clone() {
  foreach ($this->routes as $name => $route) {
    $this->routes[$name] = clone $route;
  }
}