public function Route::setRequirements in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/routing/Route.php \Symfony\Component\Routing\Route::setRequirements()
- 8.0 vendor/symfony/routing/Annotation/Route.php \Symfony\Component\Routing\Annotation\Route::setRequirements()
Same name and namespace in other branches
- 8 vendor/symfony/routing/Annotation/Route.php \Symfony\Component\Routing\Annotation\Route::setRequirements()
File
- vendor/
symfony/ routing/ Annotation/ Route.php, line 107
Class
- Route
- Annotation class for @Route().
Namespace
Symfony\Component\Routing\AnnotationCode
public function setRequirements($requirements) {
if (isset($requirements['_method'])) {
if (0 === count($this->methods)) {
$this->methods = explode('|', $requirements['_method']);
}
@trigger_error('The "_method" requirement is deprecated since version 2.2 and will be removed in 3.0. Use the "methods" option instead.', E_USER_DEPRECATED);
}
if (isset($requirements['_scheme'])) {
if (0 === count($this->schemes)) {
$this->schemes = explode('|', $requirements['_scheme']);
}
@trigger_error('The "_scheme" requirement is deprecated since version 2.2 and will be removed in 3.0. Use the "schemes" option instead.', E_USER_DEPRECATED);
}
$this->requirements = $requirements;
}