Class yii\twig\Twig_Empty_Loader

Inheritanceyii\twig\Twig_Empty_Loader
ImplementsTwig_LoaderInterface
Source Code https://github.com/yiisoft/yii2-twig/blob/master/src/Twig_Empty_Loader.php

Empty loader used for environment initialisation

Method Details

Hide inherited methods

exists() public method

public exists ( mixed $name )
$name mixed

                public function exists($name)
{
    return false;
}

            
getCacheKey() public method

public getCacheKey ( mixed $name )
$name mixed

                public function getCacheKey($name)
{
    throw new \Twig_Error_Loader("Can not render using empty loader");
}

            
getSourceContext() public method

public getSourceContext ( mixed $name )
$name mixed

                public function getSourceContext($name)
{
    throw new \Twig_Error_Loader("Can not render using empty loader");
}

            
isFresh() public method

public isFresh ( mixed $name, mixed $time )
$name mixed
$time mixed

                public function isFresh($name, $time)
{
    throw new \Twig_Error_Loader("Can not render using empty loader");
}