Webiny\Component\Router\Route\RouteCollection::setHost PHP Method

setHost() public method

Sets the host filter to all routes within the collection.
public setHost ( string $host )
$host string Host name. Example: www.webiny.com
    public function setHost($host)
    {
        /**
         * @var Route $route
         */
        foreach ($this->routes as $route) {
            $route->setHost($host);
        }
    }