From 9584f0b33735b30aba80781c4ec7be4700ebaa06 Mon Sep 17 00:00:00 2001 From: fabien Date: Wed, 11 Nov 2009 17:40:21 +0000 Subject: [PATCH] updated CHANGELOG git-svn-id: http://svn.twig-project.org/trunk@135 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- CHANGELOG | 25 ++++++++++++++++++++++++- lib/Twig/Environment.php | 2 +- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index a9cc061..3036544 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,28 @@ -* 0.9.3-DEV +* 0.9.4-DEV + +* 0.9.3 (2009-11-11) + +This release is NOT backward compatible with the previous releases. + + The loaders do not take the cache and autoReload arguments anymore. Instead, + the Twig_Environment class has two new options: cache and auto_reload. + Upgrading your code means changing this kind of code: + + $loader = new Twig_Loader_Filesystem('/path/to/templates', '/path/to/compilation_cache', true); + $twig = new Twig_Environment($loader); + + to something like this: + + $loader = new Twig_Loader_Filesystem('/path/to/templates'); + $twig = new Twig_Environment($loader, array( + 'cache' => '/path/to/compilation_cache', + 'auto_reload' => true, + )); + + * made cache and auto_reload options of Twig_Environment instead of arguments of Twig_Loader + * optimized template loading speed + * removed output when an error occurs in a template and render() is used * made major speed improvements for loops (up to 300% on even the smallest loops) * added properties as part of the sandbox mode * added public properties support (obj.item can now be the item property on the obj object) diff --git a/lib/Twig/Environment.php b/lib/Twig/Environment.php index ab3995b..8b9bf17 100644 --- a/lib/Twig/Environment.php +++ b/lib/Twig/Environment.php @@ -11,7 +11,7 @@ class Twig_Environment { - const VERSION = '0.9.2-DEV'; + const VERSION = '0.9.4-DEV'; protected $charset; protected $loader; -- 1.7.2.5