From: Fabien Potencier Date: Fri, 19 Oct 2012 12:36:16 +0000 (+0200) Subject: updated the docs for the new Twig_ExistsLoaderInterface interface X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=244eaf53b30632850c2b582fcea57ff1b9ac407f;p=web%2Fkonrad%2Ftwig.git updated the docs for the new Twig_ExistsLoaderInterface interface --- diff --git a/doc/api.rst b/doc/api.rst index 8a2b728..e6d6d7e 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -262,6 +262,11 @@ As an example, here is how the built-in ``Twig_Loader_String`` reads:: The ``isFresh()`` method must return ``true`` if the current cached template is still fresh, given the last modification time, or ``false`` otherwise. +.. tip:: + + As of Twig 1.11.0, you can also implement ``Twig_ExistsLoaderInterface`` + to make your loader faster when used with the chain loader. + Using Extensions ----------------