Skip to content

Commit

Permalink
removed error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
JayPHP committed Jul 26, 2016
1 parent 41f6989 commit 32342d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions config/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
// Composer used for autoload
require __DIR__ . '/../vendor/autoload.php';

error_reporting(E_ALL);

$environment = 'development';
$environment = 'production';

use Symfony\Component\Yaml\Yaml;
$config = Yaml::parse(file_get_contents(__DIR__.'/database.yml'))[$environment];
Expand All @@ -27,7 +25,7 @@
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
} else {
$whoops->pushHandler(function($e){
echo 'Friendly error page and send an email to the developer';
echo 'Error';
});
}

Expand Down

0 comments on commit 32342d9

Please sign in to comment.