Permalink
Browse files

Update doc/intro.rst

How to load Twig using Composer
  • Loading branch information...
1 parent 956a66e commit 5c805a1bb44cbf9620faf22a26b7268acfabe597 @humandb humandb committed Sep 16, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 doc/intro.rst
View
@@ -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

0 comments on commit 5c805a1

Please sign in to comment.