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

HttpKernelRuntime.php

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


01  <?php
02   
03  /*
04   * This file is part of the Symfony package.
05   *
06   * (c) Fabien Potencier <fabien@symfony.com>
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 Symfony\Bridge\Twig\Extension;
13   
14  use Symfony\Component\HttpKernel\Controller\ControllerReference;
15  use Symfony\Component\HttpKernel\Fragment\FragmentHandler;
16   
17  /**
18   * Provides integration with the HttpKernel component.
19   *
20   * @author Fabien Potencier <fabien@symfony.com>
21   */
22  class HttpKernelRuntime
23  {
24      private $handler;
25   
26      public function __construct(FragmentHandler $handler)
27      {
28          $this->handler = $handler;
29      }
30   
31      /**
32       * Renders a fragment.
33       *
34       * @param string|ControllerReference $uri     A URI as a string or a ControllerReference instance
35       * @param array                      $options An array of options
36       *
37       * @return string The fragment content
38       *
39       * @see FragmentHandler::render()
40       */
41      public function renderFragment($uri, $options = [])
42      {
43          $strategy = isset($options['strategy']) ? $options['strategy'] : 'inline';
44          unset($options['strategy']);
45   
46          return $this->handler->render($uri, $strategy, $options);
47      }
48   
49      /**
50       * Renders a fragment.
51       *
52       * @param string                     $strategy A strategy name
53       * @param string|ControllerReference $uri      A URI as a string or a ControllerReference instance
54       * @param array                      $options  An array of options
55       *
56       * @return string The fragment content
57       *
58       * @see FragmentHandler::render()
59       */
60      public function renderFragmentStrategy($strategy, $uri, $options = [])
61      {
62          return $this->handler->render($uri, $strategy, $options);
63      }
64  }
65