Symfony\Component\Routing\Route::setSchemes
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.
Signature
public function setSchemes(string|array
$schemes )
Parameters
$schemes
— object- The scheme or an array of schemes
Returns
- Route
- The current Route instance