From 244eaf53b30632850c2b582fcea57ff1b9ac407f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 19 Oct 2012 14:36:16 +0200 Subject: [PATCH] updated the docs for the new Twig_ExistsLoaderInterface interface --- doc/api.rst | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) 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 ---------------- -- 1.7.2.5