public function ParameterBag::has in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php \Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::has()
Returns true if a parameter name is defined.
@api
Parameters
string $name The parameter name:
Return value
bool true if the parameter name is defined, false otherwise
Overrides ParameterBagInterface::has
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ ParameterBag/ ParameterBag.php, line 134
Class
- ParameterBag
- Holds parameters.
Namespace
Symfony\Component\DependencyInjection\ParameterBagCode
public function has($name) {
return array_key_exists(strtolower($name), $this->parameters);
}