Browse code

Update doc/intro.rst

How to load Twig using Composer

Javier Lopez authored on 16/09/2012 12:08:03
Showing 1 changed files
... ...
@@ -127,6 +127,11 @@ The first step to use Twig is to register its autoloader::
127 127
 Replace the ``/path/to/lib/`` path with the path you used for Twig
128 128
 installation.
129 129
 
130
+If you have installed Twig via Composer you can take adventage of Composer's	
131
+autoload mechanism by replacing the previous snippet for::
132
+
133
+    require_once '/path/to/vendor/autoload.php'
134
+
130 135
 .. note::
131 136
 
132 137
     Twig follows the PEAR convention names for its classes, which means you