[ticket/11649] Expose Twig through the container

https://tracker.phpbb.com/browse/PHPBB3-11649
https://tracker.phpbb.com/browse/PHPBB3-12581

PHPBB3-11649
PHPBB3-12581