composer package updates
[openemr.git] / vendor / twig / twig / lib / Twig / SourceContextLoaderInterface.php
bloba6e8c42550a18d06ecafc3c0570d86ff2a4110f8
1 <?php
3 /*
4 * This file is part of Twig.
6 * (c) Fabien Potencier
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 /**
13 * Adds a getSourceContext() method for loaders.
15 * @author Fabien Potencier <fabien@symfony.com>
17 * @deprecated since 1.27 (to be removed in 3.0)
19 interface Twig_SourceContextLoaderInterface
21 /**
22 * Returns the source context for a given template logical name.
24 * @param string $name The template logical name
26 * @return Twig_Source
28 * @throws Twig_Error_Loader When $name is not found
30 public function getSourceContext($name);
33 class_alias('Twig_SourceContextLoaderInterface', 'Twig\Loader\SourceContextLoaderInterface', false);