[DpependencyInjection] added hasParameter()

This commit is contained in:
Bulat Shakirzyanov 2010-08-25 18:30:10 -04:00 committed by Fabien Potencier
parent 81b73dc9e6
commit 2ccaafa561

View File

@ -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.
*