|
@@ -13,6 +13,7 @@ namespace Symfony\Component\DependencyInjection\ParameterBag;
|
|
|
|
|
|
use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException;
|
|
|
use Symfony\Component\DependencyInjection\Exception\ParameterCircularReferenceException;
|
|
|
+use Symfony\Component\DependencyInjection\Exception\RuntimeException;
|
|
|
|
|
|
/**
|
|
|
*
|
|
@@ -132,7 +133,7 @@ class ParameterBag implements ParameterBagInterface
|
|
|
*
|
|
|
* @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
|
|
|
* @throws ParameterCircularReferenceException if a circular reference if detected
|
|
|
- * @throws \LogicException when a given parameter has a type problem.
|
|
|
+ * @throws RuntimeException when a given parameter has a type problem.
|
|
|
*/
|
|
|
public function resolveValue($value, array $resolving = array())
|
|
|
{
|
|
@@ -162,7 +163,7 @@ class ParameterBag implements ParameterBagInterface
|
|
|
*
|
|
|
* @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
|
|
|
* @throws ParameterCircularReferenceException if a circular reference if detected
|
|
|
- * @throws \LogicException when a given parameter has a type problem.
|
|
|
+ * @throws RuntimeException when a given parameter has a type problem.
|
|
|
*/
|
|
|
public function resolveString($value, array $resolving = array())
|
|
|
{
|
|
@@ -192,7 +193,7 @@ class ParameterBag implements ParameterBagInterface
|
|
|
$resolved = $self->get($key);
|
|
|
|
|
|
if (!is_string($resolved)) {
|
|
|
- throw new \LogicException('A parameter cannot contain a non-string parameter.');
|
|
|
+ throw new RuntimeException('A parameter cannot contain a non-string parameter.');
|
|
|
}
|
|
|
|
|
|
$resolving[$key] = true;
|