mirror of
https://github.com/filp/whoops.git
synced 2026-09-11 18:26:22 +00:00
14 lines
343 B
PHP
14 lines
343 B
PHP
<?php
|
|
/**
|
|
* damnit - php errors for cool kids
|
|
* @author Filipe Dobreira <http://github.com/filp>
|
|
*/
|
|
require __DIR__ . '/vendor/autoload.php';
|
|
|
|
// Using DamnIt with a specific Handler:
|
|
$run = new DamnIt\Run;
|
|
$handler = new DamnIt\Handler\BasicHandler;
|
|
$run->pushHandler($handler);
|
|
$run->register();
|
|
|
|
throw new RuntimeException("Hello!"); |