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