You are here

public function RouteCollection::remove in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/RouteCollection.php \Symfony\Component\Routing\RouteCollection::remove()

Removes a route or an array of routes by name from the collection.

Parameters

string|array $name The route name or an array of route names:

1 method overrides RouteCollection::remove()
ChainRouteCollection::remove in vendor/symfony-cmf/routing/ChainRouteCollection.php
Removes a route or an array of routes by name from the collection

File

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

Class

RouteCollection
A RouteCollection represents a set of Route instances.

Namespace

Symfony\Component\Routing

Code

public function remove($name) {
  foreach ((array) $name as $n) {
    unset($this->routes[$n]);
  }
}