37        $this->hasSourceCache = array();
 
   42        @trigger_error(
sprintf(
'Calling "getSource" on "%s" is deprecated since 1.27. Use getSourceContext() instead.', get_class($this)), E_USER_DEPRECATED);
 
   45        foreach ($this->loaders as 
$loader) {
 
   63        foreach ($this->loaders as 
$loader) {
 
   86        if (isset($this->hasSourceCache[
$name])) {
 
   87            return $this->hasSourceCache[
$name];
 
   90        foreach ($this->loaders as 
$loader) {
 
   93                    return $this->hasSourceCache[
$name] = 
true;
 
  106                return $this->hasSourceCache[
$name] = 
true;
 
  111        return $this->hasSourceCache[
$name] = 
false;
 
  117        foreach ($this->loaders as 
$loader) {
 
  135        foreach ($this->loaders as 
$loader) {
 
  151class_alias(
'Twig_Loader_Chain', 
'Twig\Loader\ChainLoader', 
false);
 
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
Exception thrown when an error occurs during template loading.
Loads templates from other loaders.
getSourceContext($name)
Returns the source context for a given template logical name.
addLoader(Twig_LoaderInterface $loader)
__construct(array $loaders=array())
getCacheKey($name)
Gets the cache key to use for the cache for a given template name.
isFresh($name, $time)
Returns true if the template is still fresh.
exists($name)
Check if we have the source code of a template, given its name.
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.