Closed
Description
Actually, to resolve a value we can use ParameterBag::resolveValue()
which is accessible in the Container
.
This works fine but the problem is when we want to resolve a value at runtime and we have a custom ContainerInterface
instance.
So I would like to have a trait or a class which would allow to resolve values without an access to a ParameterBag
instance.
You can find an example of use case in FOSRestBundle
where we need to resolve values at runtime.
We actually use a trait but I'd prefer to use something from the core.