Remove usage of the old Autoloader class in the docs

This commit is contained in:
Fabien Potencier
2019-11-15 16:44:44 +01:00
parent 69030c7fb5
commit 240e967c61
+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, [