Commit fdbc8a24 authored by Crell's avatar Crell

Convert DrupalKernel into simply a DrupalApp class, since all of the kernel-y...

Convert DrupalKernel into simply a DrupalApp class, since all of the kernel-y stuff is happening in HttpKernel anyway.
parent 87e5aede
......@@ -25,9 +25,9 @@
/**
* The DrupalKernel is the main routing and dispatching routine in Drupal.
*/
class DrupalKernel implements HttpKernelInterface {
class DrupalApp {
function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true) {
function execute(Request $request) {
try {
$dispatcher = new EventDispatcher();
......@@ -48,9 +48,6 @@ function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true) {
$event->setResponse(new Response('Not Found', 404));
}
}
});
......
<?php
use Drupal\Core\DrupalKernel;
use Drupal\Core\DrupalApp;
/**
* @file
......@@ -26,9 +26,9 @@
// A request object from the HTTPFoundation to tell us about the request.
$request = Request::createFromGlobals();
// Run our kernel, get a response, and send it.
$kernel = new DrupalKernel();
$kernel->handle($request)->send();
$kernel = new DrupalApp();
$kernel->execute($request)->send();
//$response = router_execute_request($request);
// Output 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