public function Route::hasRequirement in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Route.php \Symfony\Component\Routing\Route::hasRequirement()
Checks if a requirement is set for the given key.
Parameters
string $key A variable name:
Return value
bool true if a requirement is specified, false otherwise
File
- vendor/
symfony/ routing/ Route.php, line 559
Class
- Route
- A Route describes a route and its parameters.
Namespace
Symfony\Component\RoutingCode
public function hasRequirement($key) {
return array_key_exists($key, $this->requirements);
}