minor #3196 Remove usage of the old Autoloader class in the docs (fabpot)

This PR was merged into the 1.x branch.

Discussion
----------

Remove usage of the old Autoloader class in the docs

Commits
-------

240e967c Remove usage of the old Autoloader class in the docs
This commit is contained in:
Fabien Potencier
2019-11-15 16:46:00 +01:00
+1 -2
View File
@@ -19,8 +19,7 @@ to have multiple environments side by side, with different configurations.
The typical way to configure Twig to load templates for an application looks
roughly like this::
require_once '/path/to/lib/Twig/Autoloader.php';
Twig_Autoloader::register();
require_once '/path/to/vendor/autoload.php';
$loader = new \Twig\Loader\FilesystemLoader('/path/to/templates');
$twig = new \Twig\Environment($loader, [