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.