symfony/symfony — pull request #4613 by evillemez (2012-06-19 14:54:57+00:00)
Title: [DependencyInjection] added IntrospectableContainerInterface::initializable()

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes

Fleshed out the `IntrospectableContainerInterface` to provide the other half of `initialized()`, which is `initializable()`, meaning whether or not the container can build a given service in the first place.

Are there any thoughts on the usefulness of having a method called `reinitialize()`? Meaning, if a service has been initialized, it could be rebuilt, effectively resetting its state to the default. If so, this would be the place to add that functionality as well.