mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 18:36:53 +00:00
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:
+1
-2
@@ -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, [
|
||||
|
||||
Reference in New Issue
Block a user