From 1bb6b97c1c5f382a7a49e7d7770d695e384c02be Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Tue, 10 May 2011 02:34:02 +0200 Subject: [PATCH] [DependencyInjection] Added missing methods in the ParameterBagInterface The Container relies on the resolve() value which was not part of the interface. --- .../ParameterBag/ParameterBagInterface.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php b/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php index 852b99b30d..041c74dd56 100644 --- a/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php +++ b/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php @@ -66,4 +66,18 @@ interface ParameterBagInterface * @return Boolean true if the parameter name is defined, false otherwise */ function has($name); + + /** + * Replaces parameter placeholders (%name%) by their values for all parameters. + */ + public function resolve(); + + /** + * Replaces parameter placeholders (%name%) by their values. + * + * @param mixed $value A value + * + * @throws NonExistentParameterException if a placeholder references a parameter that does not exist + */ + public function resolveValue($value); }