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
12namespace Twig\Loader;
13
14use Twig\Error\LoaderError;
15use Twig\Source;
16
17/**
18 * Adds a getSourceContext() method for loaders.
19 *
20 * @author Fabien Potencier <fabien@symfony.com>
21 *
22 * @deprecated since 1.27 (to be removed in 3.0)
23 */
24interface SourceContextLoaderInterface
25{
26    /**
27     * Returns the source context for a given template logical name.
28     *
29     * @param string $name The template logical name
30     *
31     * @return Source
32     *
33     * @throws LoaderError When $name is not found
34     */
35    public function getSourceContext($name);
36}
37
38class_alias('Twig\Loader\SourceContextLoaderInterface', 'Twig_SourceContextLoaderInterface');
39