diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalApp.php similarity index 95% rename from core/lib/Drupal/Core/DrupalKernel.php rename to core/lib/Drupal/Core/DrupalApp.php index e023199ddf7d114528095ad3d3361673a373b6c6..1670a1f1f1b214cef38032949d61e9cc99f2b644 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalApp.php @@ -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)); } } - - - }); diff --git a/index.php b/index.php index 8002359d2ed8aee28771ee26845d7bed32e9893f..624c62a420cad30efac8f4762c3038980db8b5a5 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ <?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.