Class yii\twig\TwigEmptyLoader

Inheritanceyii\twig\TwigEmptyLoader
ImplementsTwig\Loader\LoaderInterface
Source Code https://github.com/yiisoft/yii2-twig/blob/master/TwigEmptyLoader.php

Empty loader used for environment initialisation

Method Details

Hide inherited methods

exists() public method

public void exists ( string $name )
$name

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

            
getCacheKey() public method

public void getCacheKey ( string $name )
$name

                public function getCacheKey(string $name): string
{
    throw new LoaderError("Can not render using empty loader");
}

            
getSourceContext() public method

public void getSourceContext ( string $name )
$name

                public function getSourceContext(string $name): Source
{
    throw new LoaderError("Can not render using empty loader");
}

            
isFresh() public method

public void isFresh ( string $name, integer $time )
$name
$time

                public function isFresh(string $name, int $time): bool
{
    throw new LoaderError("Can not render using empty loader");
}