mirror of
https://github.com/filp/whoops.git
synced 2026-09-17 05:06:22 +00:00
Add Handler priority constants
This commit is contained in:
@@ -10,6 +10,17 @@ use DamnIt\Run;
|
||||
|
||||
class Handler implements HandlerInterface
|
||||
{
|
||||
/**
|
||||
* Can be used as priorities with Run::addHandler,
|
||||
* to ensure the handler is added to the end or
|
||||
* beginning of the handler stack.
|
||||
*
|
||||
* @example Low priority handler
|
||||
* $run->addHandler($myHandler, Handler::LOW_PRIORITY);
|
||||
*/
|
||||
const LOW_PRIORITY = 0x10;
|
||||
const HIGH_PRIORITY = 0x20;
|
||||
|
||||
/**
|
||||
* @var DamnIt\Run
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user