|
@@ -118,6 +118,18 @@ class Container implements ContainerInterface, \ArrayAccess
|
|
return $this->parameterBag->get($name);
|
|
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.
|
|
* Sets a parameter.
|
|
*
|
|
*
|