New in Twig: Namespaced Classes

Contributed by Fabien Potencier in #2861, #2862 and #2863. Twig template engine was originally released in 2008, a year before PHP 5.3 introduced PHP namespaces in June 2009. That’s why historically Twig classes never used namespaces: 1 2 3 4 5 6 7 8 9 10 11 12 13 namespace App\Twig; class AppExtension extends \Twig_Extension…