From 5c805a1bb44cbf9620faf22a26b7268acfabe597 Mon Sep 17 00:00:00 2001 From: Javier Lopez Date: Sun, 16 Sep 2012 14:08:03 +0200 Subject: [PATCH] Update doc/intro.rst How to load Twig using Composer --- doc/intro.rst | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) 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 -- 1.7.2.5