public function setHost($pattern, array $defaults = [], array $requirements = [])
    {
        foreach ($this->routes as $route) {
            $route->setHost($pattern);
            $route->addDefaults($defaults);
            $route->addRequirements($requirements);
        }
    }
public function setHost($pattern, array $defaults = [], array $requirements = [])
    {
        foreach ($this->routes as $route) {
            $route->setHost($pattern);
            $route->addDefaults($defaults);
            $route->addRequirements($requirements);
        }
    }
public function setHost ( $ pattern , array $ defaults = [ ] , array $ requirements = [ ] ) { foreach ( $ this -> routes as $ route ) { $ route -> setHost ( $ pattern ) ; $ route -> addDefaults ( $ defaults ) ; $ route -> addRequirements ( $ requirements ) ; } }
Sets the host pattern on all routes.

@param string $pattern      The pattern
@param array  $defaults     An array of default values
@param array  $requirements An array of requirements
Sets the host pattern on all routes .