Skip to content

Commit

Permalink
deprecated Twig_Environment::clearTemplateCache()
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jul 3, 2015
1 parent 1255e36 commit 61eb80b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
@@ -1,5 +1,6 @@
* 1.18.3 (2015-XX-XX)

* deprecated Twig_Environment::clearTemplateCache()
* fixed sandbox disabling when using the include function

* 1.18.2 (2015-06-06)
Expand Down
6 changes: 6 additions & 0 deletions doc/deprecated.rst
Expand Up @@ -113,3 +113,9 @@ Globals
* As of Twig 2.x, the ability to register a global variable after the runtime
or the extensions have been initialized is not possible anymore (but
changing the value of an already registered global is possible).

Miscellaneous
-------------

* As of Twig 1.x, ``Twig_Environment::clearTemplateCache()`` is deprecated and
will be removed in 2.0.
2 changes: 2 additions & 0 deletions lib/Twig/Environment.php
Expand Up @@ -443,6 +443,8 @@ public function resolveTemplate($names)

/**
* Clears the internal template cache.
*
* @deprecated since 1.18.3 (to be removed in 2.0)
*/
public function clearTemplateCache()
{
Expand Down

0 comments on commit 61eb80b

Please sign in to comment.