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

setSchemes() public method

Sets the scheme filter to all routes within the collection.
public setSchemes ( array | string $schemes )
$schemes array | string Url scheme. Example: https
    public function setSchemes($schemes)
    {
        /**
         * @var Route $route
         */
        foreach ($this->routes as $route) {
            $route->setSchemes($schemes);
        }
    }