[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/phpbb/event/ -> kernel_terminate_subscriber.php (source)

   1  <?php
   2  /**
   3  *
   4  * This file is part of the phpBB Forum Software package.
   5  *
   6  * @copyright (c) phpBB Limited <https://www.phpbb.com>
   7  * @license GNU General Public License, version 2 (GPL-2.0)
   8  *
   9  * 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 null
  29      */
  30  	public function on_kernel_terminate(PostResponseEvent $event)
  31      {
  32          exit_handler();
  33      }
  34  
  35  	public static function getSubscribedEvents()
  36      {
  37          return array(
  38              KernelEvents::TERMINATE        => array('on_kernel_terminate', ~PHP_INT_MAX),
  39          );
  40      }
  41  }


Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1