public function RouteCollection::setSchemes in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/routing/RouteCollection.php \Symfony\Component\Routing\RouteCollection::setSchemes()
Sets the schemes (e.g. 'https') all child routes are restricted to.
Parameters
string|array $schemes The scheme or an array of schemes:
1 method overrides RouteCollection::setSchemes()
- ChainRouteCollection::setSchemes in vendor/
symfony-cmf/ routing/ ChainRouteCollection.php - Sets the schemes (e.g. 'https') all child routes are restricted to.
File
- vendor/
symfony/ routing/ RouteCollection.php, line 239
Class
- RouteCollection
- A RouteCollection represents a set of Route instances.
Namespace
Symfony\Component\RoutingCode
public function setSchemes($schemes) {
foreach ($this->routes as $route) {
$route
->setSchemes($schemes);
}
}