function Route::setSchemes
Same name in this branch
- 11.1.x vendor/symfony/routing/Attribute/Route.php \Symfony\Component\Routing\Attribute\Route::setSchemes()
Sets the schemes (e.g. 'https') this route is restricted to. So an empty array means that any scheme is allowed.
Parameters
string|string[] $schemes The scheme or an array of schemes:
Return value
$this
1 call to Route::setSchemes()
- Route::__construct in vendor/
symfony/ routing/ Route.php - Constructor.
File
-
vendor/
symfony/ routing/ Route.php, line 165
Class
- Route
- A Route describes a route and its parameters.
Namespace
Symfony\Component\RoutingCode
public function setSchemes(string|array $schemes) : static {
$this->schemes = array_map('strtolower', (array) $schemes);
$this->compiled = null;
return $this;
}