symfony/symfony — pull request #6169 by dantleech (2012-12-02 14:12:22+00:00)
Title: [Twig] [DI Config] Made the loader a config option

Bug fix: [no]
Feature addition: [yes]
Backwards compatibility break: [no]
Symfony2 tests pass: [yes]
License of the code: MIT

- Added "loader_service_id" to config.
- Making the choice of twig loader an application choice.

This PR makes sense to me as it allows the application to decide which twig loader to use. I need to use the Twig chain loader but adding a compiler pass to override the service alias just seemed wrong ... or maybe I am missing something.

Initially I also made the twig.loader an alias only to find out somebody beat me to it 5 days ago :)