You are here

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

Sets the host pattern on all routes.

Parameters

string $pattern The pattern:

array $defaults An array of default values:

array $requirements An array of requirements:

Overrides RouteCollection::setHost

File

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

Class

ChainRouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function setHost($pattern, array $defaults = array(), array $requirements = array()) {
  $this
    ->createInternalCollection();
  foreach ($this->routeCollections as $routeCollection) {
    $routeCollection
      ->setHost($pattern, $defaults, $requirements);
  }
}