SoWhoops
StackOverflow Whoops integration
This is a prototype project for integrating stackoverflow with the PrettyPageHandler
of Whoops!.
To use:
$whoops = new \Whoops\Run;
$whoops->pushHandler(\SoWhoops\HandlerFactory::buildDefaultDecorator());
$whoops->register();
Advanced configuration:
$whoops = new \Whoops\Run;
$whoops->pushHandler(
new \SoWhoops\StackOverflowPrettyPageHandlerDecorator(
new \Whoops\Handler\PrettyPageHandler,
[
new \SoWhoops\SearchAlgorithm\ExactAnswers,
new \SoWhoops\SearchAlgorithm\PrefixAnswers
]
)
);
$whoops->register();
To test the example:
$ composer run-example
Connect at: http://127.0.0.1:8000