mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
deprecated Twig_Environment::getTemplateClassPrefix
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user