[DpependencyInjection] added hasParameter()
This commit is contained in:
parent
81b73dc9e6
commit
2ccaafa561
@ -118,6 +118,18 @@ class Container implements ContainerInterface, \ArrayAccess
|
||||
return $this->parameterBag->get($name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a parameter exists.
|
||||
*
|
||||
* @param string $name The parameter name
|
||||
*
|
||||
* @return boolean The presense of parameter in container
|
||||
*/
|
||||
public function hasParameter($name)
|
||||
{
|
||||
return $this->parameterBag->has($name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a parameter.
|
||||
*
|
||||
|
Reference in New Issue
Block a user