Skip to content
Snippets Groups Projects
Commit fdbc8a24 authored by Larry Garfield's avatar Larry Garfield
Browse files

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
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment