[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/twig/twig/src/Loader/ -> SourceContextLoaderInterface.php (source)

   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  namespace Twig\Loader;
  13  
  14  use Twig\Error\LoaderError;
  15  use 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   */
  24  interface 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  
  38  class_alias('Twig\Loader\SourceContextLoaderInterface', 'Twig_SourceContextLoaderInterface');


Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1