public function RouteCollection::setHost in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/routing/RouteCollection.php \Symfony\Component\Routing\RouteCollection::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:
1 method overrides RouteCollection::setHost()
- ChainRouteCollection::setHost in vendor/
symfony-cmf/ routing/ ChainRouteCollection.php - Sets the host pattern on all routes.
File
- vendor/
symfony/ routing/ RouteCollection.php, line 163
Class
- RouteCollection
- A RouteCollection represents a set of Route instances.
Namespace
Symfony\Component\RoutingCode
public function setHost($pattern, array $defaults = array(), array $requirements = array()) {
foreach ($this->routes as $route) {
$route
->setHost($pattern);
$route
->addDefaults($defaults);
$route
->addRequirements($requirements);
}
}