Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Cleaning up WhoopsPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan committed Feb 2, 2014
1 parent 6aca303 commit 35aae18
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions plugins/WhoopsPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function() {
return $handler;
}
);

$container["whoopsSlimInfoHandler"] = $container->protect(
function() use ($container) {

Expand Down Expand Up @@ -83,6 +82,7 @@ function() use ($container) {
}
);

// Add actual Whoops\Run object
$container['whoops'] = $container->share(
function($container) {
$run = new Run();
Expand All @@ -93,7 +93,7 @@ function($container) {
}
);

// Try to register Whoops handler, and set the callback function
// Try to register Whoops, and set the callback function
try {
$container['whoops']->register();
$container['router']->error(array($container['whoops'], Run::EXCEPTION_HANDLER));
Expand All @@ -104,23 +104,18 @@ function($container) {

public function before_config_load(&$settings)
{
// echo __CLASS__ . '::before_config_load';
}

public function before_file_load(&$content_dir)
{
// echo __CLASS__ . '::before_file_load';
}

public function after_file_load(&$content)
{
// $this->container['router']->error(array($container['whoops'], Run::EXCEPTION_HANDLER));
// echo __CLASS__ . '::after_file_load';
}

public function request_url(&$url)
{
// echo __CLASS__ . '::request_url';
}

}
Expand Down

0 comments on commit 35aae18

Please sign in to comment.