mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
Update doc/intro.rst
How to load Twig using Composer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user