A bridge to manage twig layout templates with PHP classes