From: Javier Lopez Date: Sun, 16 Sep 2012 12:08:03 +0000 (+0200) Subject: Update doc/intro.rst X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=5c805a1bb44cbf9620faf22a26b7268acfabe597;p=web%2Fkonrad%2Ftwig.git Update doc/intro.rst How to load Twig using Composer --- diff --git a/doc/intro.rst b/doc/intro.rst index f9dc226..3a92251 100644 --- a/doc/intro.rst +++ b/doc/intro.rst @@ -127,6 +127,11 @@ The first step to use Twig is to register its autoloader:: Replace the ``/path/to/lib/`` path with the path you used for Twig installation. +If you have installed Twig via Composer you can take adventage of Composer's +autoload mechanism by replacing the previous snippet for:: + + require_once '/path/to/vendor/autoload.php' + .. note:: Twig follows the PEAR convention names for its classes, which means you