craue/CraueConfigBundle — pull request #13 by afurculita (2014-07-08 21:51:46+00:00)
Title: Replacing Setter Injection with Constructor Injection

A Constructor injection is better for Config and ConfigTemplateExtension classes, because they can't operate without the injected arguments. In this case a Setter injection will be an anti-pattern, because the class is not fully initialized and the setters will have to finish the initialization.