Verzeichnisstruktur phpBB-3.3.15


Veröffentlicht
28.08.2024

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

ExtensionInterface.php

Zuletzt modifiziert: 02.04.2025, 15:03 - Dateigröße: 1.71 KiB


01  <?php
02   
03  /*
04   * This file is part of Twig.
05   *
06   * (c) Fabien Potencier
07   *
08   * For the full copyright and license information, please view the LICENSE
09   * file that was distributed with this source code.
10   */
11   
12  namespace Twig\Extension;
13   
14  use Twig\NodeVisitor\NodeVisitorInterface;
15  use Twig\TokenParser\TokenParserInterface;
16  use Twig\TwigFilter;
17  use Twig\TwigFunction;
18  use Twig\TwigTest;
19   
20  /**
21   * Interface implemented by extension classes.
22   *
23   * @author Fabien Potencier <fabien@symfony.com>
24   */
25  interface ExtensionInterface
26  {
27      /**
28       * Returns the token parser instances to add to the existing list.
29       *
30       * @return TokenParserInterface[]
31       */
32      public function getTokenParsers();
33   
34      /**
35       * Returns the node visitor instances to add to the existing list.
36       *
37       * @return NodeVisitorInterface[]
38       */
39      public function getNodeVisitors();
40   
41      /**
42       * Returns a list of filters to add to the existing list.
43       *
44       * @return TwigFilter[]
45       */
46      public function getFilters();
47   
48      /**
49       * Returns a list of tests to add to the existing list.
50       *
51       * @return TwigTest[]
52       */
53      public function getTests();
54   
55      /**
56       * Returns a list of functions to add to the existing list.
57       *
58       * @return TwigFunction[]
59       */
60      public function getFunctions();
61   
62      /**
63       * Returns a list of operators to add to the existing list.
64       *
65       * @return array<array> First array of unary operators, second array of binary operators
66       */
67      public function getOperators();
68  }
69   
70  class_alias('Twig\Extension\ExtensionInterface', 'Twig_ExtensionInterface');
71   
72  // Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
73  class_exists('Twig\Environment');
74