deprecated Twig_Environment::getTemplateClassPrefix

This commit is contained in:
Fabien Potencier
2015-09-12 11:36:38 +02:00
parent c6ad6feda4
commit 0157315e59
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
* 1.22.0 (2015-XX-XX)
* deprecated Twig_Environment::clearCacheFiles(), Twig_Environment::getCacheFilename(),
and Twig_Environment::writeCacheFile()
Twig_Environment::writeCacheFile(), and Twig_Environment::getTemplateClassPrefix()
* added a way to override the filesystem template cache system
* added a way to get the original template source from Twig_Template
+2 -2
View File
@@ -141,8 +141,8 @@ Miscellaneous
-------------
* As of Twig 1.x, ``Twig_Environment::clearTemplateCache()``, ``Twig_Environment::writeCacheFile()``,
``Twig_Environment::clearCacheFiles()``, and ``Twig_Environment::getCacheFilename()`` are deprecated and
will be removed in 2.0.
``Twig_Environment::clearCacheFiles()``, ``Twig_Environment::getCacheFilename()``, and
``Twig_Environment::getTemplateClassPrefix()`` are deprecated and will be removed in 2.0.
* As of Twig 1.x, ``Twig_Template::getEnvironment()`` and
``Twig_TemplateInterface::getEnvironment()`` are deprecated and will be
+4
View File
@@ -305,9 +305,13 @@ class Twig_Environment
* Gets the template class prefix.
*
* @return string The template class prefix
*
* @deprecated since 1.22 (to be removed in 2.0)
*/
public function getTemplateClassPrefix()
{
@trigger_error(sprintf('The %s method is deprecated and will be removed in Twig 2.0.', __METHOD__), E_USER_DEPRECATED);
return $this->templateClassPrefix;
}