Commit 501f6d5a authored by Crell's avatar Crell

Clean up debug code.

parent fdbc8a24
......@@ -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;
}
......
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