mirror of
https://github.com/filp/whoops.git
synced 2026-09-01 21:18:04 +00:00
readme: example generating html
This commit is contained in:
@@ -70,6 +70,16 @@ For more options, have a look at the **example files** in [`examples/`](./exampl
|
||||
|
||||
You may also want to override some system calls Whoops does. To do that, extend `Whoops\Util\SystemFacade`, override functions that you want and pass it as the argument to the `Run` constructor.
|
||||
|
||||
You may also collect the HTML generated to process it yourself:
|
||||
|
||||
```php
|
||||
$whoops = new \Whoops\Run;
|
||||
$whoops->allowQuit(false);
|
||||
$whoops->writeToOutput(false);
|
||||
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
|
||||
$html = $whoops->handleException($e);
|
||||
```
|
||||
|
||||
### Available Handlers
|
||||
|
||||
**whoops** currently ships with the following built-in handlers, available in the `Whoops\Handler` namespace:
|
||||
|
||||
Reference in New Issue
Block a user