Add Handler priority constants

This commit is contained in:
filp
2013-03-11 21:38:21 +00:00
parent 64b2cd10f7
commit 3ef452bcac
+11
View File
@@ -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
*/