[FrameworkBundle] Determine templating.engine.php scope as late as possible