projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
956a66e
)
Update doc/intro.rst
author
Javier Lopez
<f12loalf@gmail.com>
Sun, 16 Sep 2012 12:08:03 +0000 (14:08 +0200)
committer
Javier Lopez
<f12loalf@gmail.com>
Sun, 16 Sep 2012 12:08:03 +0000 (14:08 +0200)
How to load Twig using Composer
doc/intro.rst
patch
|
blob
|
history
diff --git
a/doc/intro.rst
b/doc/intro.rst
index
f9dc226
..
3a92251
100644
(file)
--- 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