symfony/symfony — pull request #2567 by iteman (2011-11-04 19:16:52+00:00)
Title: Fix a problem that a parameter cannot be used as the value of a factory-method definition

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -

All definitions except the factory-method are resolved by $this->getParameterBag()->resolveValue() method in the createService() method, but the factory-method is not resolved by the same way. Thus a parameter cannot be used as the value of a factory-method definition. This PR fixes the problem unless it is the expected behavior.