bootstrap.php 442 B

12345678910111213141516171819202122
  1. <?php
  2. namespace App;
  3. require_once __DIR__ . '/../vendor/autoload.php';
  4. $environment = 'development';
  5. /**
  6. * Register the error handler
  7. */
  8. $whoops = new \Whoops\Run;
  9. if ($environment !== 'production') {
  10. $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
  11. } else {
  12. $whoops->pushHandler(function($e){
  13. echo 'Hey, don\'t worry, just send an email to the developer';
  14. });
  15. }
  16. $whoops->register();
  17. throw new \Exception;