Commit fd18c169 authored by Crell's avatar Crell

Execute termination listeners, including the subscriber formerly known as...

Execute termination listeners, including the subscriber formerly known as drupal_page_footer() and now represented by this class.
parent a88fc53b
......@@ -4,14 +4,14 @@
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
use Symfony\Component\HttpKernel\Event\PostResponseEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
* @file
*
* Definition of Drupal\Core\EventSubscriber\ResponseSubscriber;
* Definition of Drupal\Core\EventSubscriber\RequestCloseSubscriber;
*/
/**
......@@ -27,10 +27,10 @@ class RequestCloseSubscriber implements EventSubscriberInterface {
* content to drupal_page_set_cache(). There's probably a lot in here that
* needs to get removed/changed.
*
* @param FilterResponseEvent $event
* @param PostResponseEvent $event
* The Event to process.
*/
public function onTerminate(FilterResponseEvent $event) {
public function onTerminate(PostResponseEvent $event) {
global $user;
module_invoke_all('exit');
......
......@@ -32,11 +32,12 @@
// injection container at some point.
request($request);
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
$dispatcher = new EventDispatcher();
$resolver = new ControllerResolver();
$kernel = new DrupalKernel($dispatcher, $resolver);
$kernel->handle($request)->send();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment