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

kernel_terminate_subscriber.php

Zuletzt modifiziert: 02.04.2025, 15:02 - Dateigröße: 1.02 KiB


01  <?php
02  /**
03  *
04  * This file is part of the phpBB Forum Software package.
05  *
06  * @copyright (c) phpBB Limited <https://www.phpbb.com>
07  * @license GNU General Public License, version 2 (GPL-2.0)
08  *
09  * For full copyright and license information, please see
10  * the docs/CREDITS.txt file.
11  *
12  */
13   
14  namespace phpbb\event;
15   
16  use Symfony\Component\EventDispatcher\EventSubscriberInterface;
17  use Symfony\Component\HttpKernel\KernelEvents;
18  use Symfony\Component\HttpKernel\Event\PostResponseEvent;
19   
20  class kernel_terminate_subscriber implements EventSubscriberInterface
21  {
22      /**
23      * This listener is run when the KernelEvents::TERMINATE event is triggered
24      * This comes after a Response has been sent to the server; this is
25      * primarily cleanup stuff.
26      *
27      * @param PostResponseEvent $event
28      * @return void
29      */
30      public function on_kernel_terminate(PostResponseEvent $event)
31      {
32          garbage_collection();
33   
34          exit_handler();
35      }
36   
37      static public function getSubscribedEvents()
38      {
39          return array(
40              KernelEvents::TERMINATE        => array('on_kernel_terminate', ~PHP_INT_MAX),
41          );
42      }
43  }
44