Yaffs site version 1.1
[yaffs-website] / vendor / twig / twig / lib / Twig / SourceContextLoaderInterface.php
1 <?php
2
3 /*
4  * This file is part of Twig.
5  *
6  * (c) Fabien Potencier
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 /**
13  * Adds a getSourceContext() method for loaders.
14  *
15  * @author Fabien Potencier <fabien@symfony.com>
16  *
17  * @deprecated since 1.27 (to be removed in 3.0)
18  */
19 interface Twig_SourceContextLoaderInterface
20 {
21     /**
22      * Returns the source context for a given template logical name.
23      *
24      * @param string $name The template logical name
25      *
26      * @return Twig_Source
27      *
28      * @throws Twig_Error_Loader When $name is not found
29      */
30     public function getSourceContext($name);
31 }
32
33 class_alias('Twig_SourceContextLoaderInterface', 'Twig\Loader\SourceContextLoaderInterface', false);