Sets the schemes (e.g. 'https') this route is restricted to. So an empty array means that any scheme is allowed.
This method implements a fluent interface.
string|array $schemes The scheme or an array of schemes:
Route The current Route instance
public function setSchemes($schemes) {
$this->schemes = array_map('strtolower', (array) $schemes);
// this is to keep BC and will be removed in a future version
if ($this->schemes) {
$this->requirements['_scheme'] = implode('|', $this->schemes);
}
else {
unset($this->requirements['_scheme']);
}
$this->compiled = null;
return $this;
}