| 1 |
<?php |
| 2 |
/* |
| 3 |
* This file is part of the ManageWP Worker plugin. |
| 4 |
* |
| 5 |
* (c) ManageWP LLC <contact@managewp.com> |
| 6 |
* |
| 7 |
* For the full copyright and license information, please view the LICENSE |
| 8 |
* file that was distributed with this source code. |
| 9 |
*/ |
| 10 |
|
| 11 |
class MWP_Event_Events |
| 12 |
{ |
| 13 |
/** |
| 14 |
* Fired if a master request is detected. |
| 15 |
* |
| 16 |
* @see MWP_Event_MasterRequest |
| 17 |
*/ |
| 18 |
const MASTER_REQUEST = 'kernel.master_request'; |
| 19 |
|
| 20 |
/** |
| 21 |
* Fired if a non-master request is detected. |
| 22 |
* |
| 23 |
* @see MWP_Event_PublicRequest |
| 24 |
*/ |
| 25 |
const PUBLIC_REQUEST = 'kernel.public_request'; |
| 26 |
|
| 27 |
/** |
| 28 |
* Fired when the HTTP response is ready to be sent. |
| 29 |
* |
| 30 |
* @see MWP_Event_MasterResponse |
| 31 |
*/ |
| 32 |
const MASTER_RESPONSE = 'kernel.master_response'; |
| 33 |
|
| 34 |
/** |
| 35 |
* Fired just before the action and arguments are passed to it. |
| 36 |
* |
| 37 |
* @see MWP_Event_ActionRequest |
| 38 |
*/ |
| 39 |
const ACTION_REQUEST = 'action.request'; |
| 40 |
|
| 41 |
/** |
| 42 |
* Fired right after the action sends a response. |
| 43 |
* |
| 44 |
* @see MWP_Event_ActionResponse |
| 45 |
*/ |
| 46 |
const ACTION_RESPONSE = 'action.response'; |
| 47 |
|
| 48 |
/** |
| 49 |
* Fired after an exception is thrown. |
| 50 |
* |
| 51 |
* @see MWP_Event_ActionException |
| 52 |
*/ |
| 53 |
const ACTION_EXCEPTION = 'action.exception'; |
| 54 |
|
| 55 |
private function __construct() |
| 56 |
{ |
| 57 |
} |
| 58 |
} |
| 59 |
|