"Fossies" - the Fresh Open Source Software Archive

Member "grav/vendor/twig/twig/src/Extension/AbstractExtension.php" (19 Mar 2020, 1345 Bytes) of package /linux/www/grav-v1.6.23.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "AbstractExtension.php" see the Fossies "Dox" file reference documentation.

    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\Extension;
   13 
   14 use Twig\Environment;
   15 
   16 abstract class AbstractExtension implements ExtensionInterface
   17 {
   18     /**
   19      * @deprecated since 1.23 (to be removed in 2.0), implement \Twig_Extension_InitRuntimeInterface instead
   20      */
   21     public function initRuntime(Environment $environment)
   22     {
   23     }
   24 
   25     public function getTokenParsers()
   26     {
   27         return [];
   28     }
   29 
   30     public function getNodeVisitors()
   31     {
   32         return [];
   33     }
   34 
   35     public function getFilters()
   36     {
   37         return [];
   38     }
   39 
   40     public function getTests()
   41     {
   42         return [];
   43     }
   44 
   45     public function getFunctions()
   46     {
   47         return [];
   48     }
   49 
   50     public function getOperators()
   51     {
   52         return [];
   53     }
   54 
   55     /**
   56      * @deprecated since 1.23 (to be removed in 2.0), implement \Twig_Extension_GlobalsInterface instead
   57      */
   58     public function getGlobals()
   59     {
   60         return [];
   61     }
   62 
   63     /**
   64      * @deprecated since 1.26 (to be removed in 2.0), not used anymore internally
   65      */
   66     public function getName()
   67     {
   68         return \get_class($this);
   69     }
   70 }
   71 
   72 class_alias('Twig\Extension\AbstractExtension', 'Twig_Extension');