4 * This file is part of Twig.
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
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
22 * Returns the source context for a given template logical name.
24 * @param string $name The template logical name
28 * @throws Twig_Error_Loader When $name is not found
30 public function getSourceContext($name);