From eac8c0cd3fffb2ff29dc2edd647df544c47dd3ff Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 21 Oct 2015 08:17:22 +0200 Subject: [PATCH] removed obsolete documentation about requiring classes --- doc/advanced.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/doc/advanced.rst b/doc/advanced.rst index a20eab034..1ecb34e8a 100644 --- a/doc/advanced.rst +++ b/doc/advanced.rst @@ -645,9 +645,6 @@ main ``Environment`` object:: $twig = new Twig_Environment($loader); $twig->addExtension(new Project_Twig_Extension()); -Of course, you need to first load the extension file by either using -``require_once()`` or by using an autoloader (see `spl_autoload_register()`_). - .. tip:: The bundled extensions are great examples of how extensions work. @@ -866,7 +863,6 @@ Testing the node visitors can be complex, so extend your test cases from ``Twig_Test_NodeTestCase``. Examples can be found in the Twig repository `tests/Twig/Node`_ directory. -.. _`spl_autoload_register()`: http://www.php.net/spl_autoload_register .. _`rot13`: http://www.php.net/manual/en/function.str-rot13.php .. _`tests/Twig/Fixtures`: https://github.com/twigphp/Twig/tree/master/test/Twig/Tests/Fixtures .. _`tests/Twig/Node`: https://github.com/twigphp/Twig/tree/master/test/Twig/Tests/Node