You are here

public function ChainRouteCollection::setSchemes in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/ChainRouteCollection.php \Symfony\Cmf\Component\Routing\ChainRouteCollection::setSchemes()

Sets the schemes (e.g. 'https') all child routes are restricted to.

Parameters

string|array $schemes The scheme or an array of schemes:

Overrides RouteCollection::setSchemes

File

vendor/symfony-cmf/routing/ChainRouteCollection.php, line 218

Class

ChainRouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function setSchemes($schemes) {
  $this
    ->createInternalCollection();
  foreach ($this->routeCollections as $routeCollection) {
    $routeCollection
      ->setSchemes($schemes);
  }
}