hwi/HWIOAuthBundle — pull request #49 by stof (2012-06-28 22:43:08+00:00)
Title: Refactor di

This refactors the DI extension to use the DefinitionDecorator fully.

The first commit is about the handling of the resource owners. I'm not totally satisfied about it as I'm currently copy-pasting a similar prototype for each resource own. I will try to see if I can improve it with only 2 prototypes: the oauth1 and the oauth2 ones.

The other commits are applying the DefinitionDecorator properly in other places, by moving common deps back to the file instead of building the definition fully in the extension (which made the decorator quite useless in most cases) thanks to ``abstract="true"`` on prototypes to avoid complaining about undefined deps. It also declares services as private whenever possible to allow the DI component to inline them when optimizing the container.