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

Clean up debug code.

parent fdbc8a24
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
......@@ -95,7 +95,7 @@ DirectoryIndex index.php index.html index.htm
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /
RewriteBase /~crell/sympal
# Redirect common PHP files to their new locations.
RewriteCond %{REQUEST_URI} ^(.*)?/(update.php) [OR]
......
......@@ -19,11 +19,11 @@
/**
* @file
*
* Definition of Drupal\Core\DrupalKernel.
* Definition of Drupal\Core\DrupalApp.
*/
/**
* The DrupalKernel is the main routing and dispatching routine in Drupal.
* The DrupalApp class is the core of Drupal itself.
*/
class DrupalApp {
......@@ -32,9 +32,6 @@ function execute(Request $request) {
$dispatcher = new EventDispatcher();
//$dispatcher->addSubscriber(new \Symfony\Component\HttpKernel\EventListener\ExceptionListener());
// Quick and dirty attempt at wrapping our rendering logic as is.
$dispatcher->addListener(KernelEvents::VIEW, function(Event $event) {
$page_callback_result = $event->getControllerResult();
......@@ -76,13 +73,7 @@ function execute(Request $request) {
else {
$response = new Response('An error occurred', 500);
}
//$response = new Response('Not Found', 404);
}
//catch (Exception $e) {
// $response = new Response('An error occurred', 500);
//}
return $response;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment