12@trigger_error(
'The Twig_Loader_String class is deprecated since version 1.18.1 and will be removed in 2.0. Use Twig_Loader_Array instead or Twig_Environment::createTemplate().', E_USER_DEPRECATED);
34 @trigger_error(sprintf(
'Calling "getSource" on "%s" is deprecated since 1.27. Use getSourceContext() instead.', get_class($this)), E_USER_DEPRECATED);
An exception for terminatinating execution or to throw for unit testing.
Loads a template from a string.
getCacheKey($name)
Gets the cache key to use for the cache for a given template name.
getSourceContext($name)
Returns the source context for a given template logical name.
exists($name)
Check if we have the source code of a template, given its name.
isFresh($name, $time)
Returns true if the template is still fresh.
getSource($name)
Gets the source code of a template, given its name.
Holds information about a non-compiled Twig template.
Adds an exists() method for loaders.
Interface all loaders must implement.
Adds a getSourceContext() method for loaders.