mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-10 09:26:29 +00:00
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