PatrickLouys / no-framework-tutorial

A small tutorial to show how to create a PHP application without a framework.
MIT License
1.53k stars 186 forks source link

fixed Twig references #69

Closed AngelTrs closed 2 years ago

AngelTrs commented 4 years ago

Fixed compatibility issue between Auryn and newer versions (>= 1.38) of Twig.

Starting with version 1.38, Twig began the process of deprecating PSR-0 (non-namespaced) classes by making them aliases. Auryn does not handle class aliases causing an exception to be thrown by the Twig implementation on 11-page-menu.md

This commit fixes the issue and future-proofs the tutorial by using Twig’s namespaced (PSR-4) classes.