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\Extension;
13
14use Twig\Environment;
15
16abstract 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
72class_alias('Twig\Extension\AbstractExtension', 'Twig_Extension');
73