12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- /**
- * @link http://www.yiiframework.com/
- * @copyright Copyright (c) 2008 Yii Software LLC
- * @license http://www.yiiframework.com/license/
- */
- namespace yii\twig;
- /**
- * Empty loader used for environment initialisation
- *
- * @author Andrzej Broński <andrzej1_1@o2.pl>
- */
- class Twig_Empty_Loader implements \Twig_LoaderInterface
- {
- /**
- * @inheritdoc
- */
- public function getSourceContext($name)
- {
- throw new \Twig_Error_Loader("Can not render using empty loader");
- }
- /**
- * @inheritdoc
- */
- public function getCacheKey($name)
- {
- throw new \Twig_Error_Loader("Can not render using empty loader");
- }
- /**
- * @inheritdoc
- */
- public function isFresh($name, $time)
- {
- throw new \Twig_Error_Loader("Can not render using empty loader");
- }
- /**
- * @inheritdoc
- */
- public function exists($name)
- {
- return false;
- }
- }
|