| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* @file |
| 5 |
* Dispatch events when patches are applied. |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace cweagans\Composer; |
| 9 |
|
| 10 |
class PatchEvents { |
| 11 |
|
| 12 |
/** |
| 13 |
* The PRE_PATCH_APPLY event occurs before a patch is applied. |
| 14 |
* |
| 15 |
* The event listener method receives a cweagans\Composer\PatchEvent instance. |
| 16 |
* |
| 17 |
* @var string |
| 18 |
*/ |
| 19 |
const PRE_PATCH_APPLY = 'pre-patch-apply'; |
| 20 |
|
| 21 |
/** |
| 22 |
* The POST_PATCH_APPLY event occurs after a patch is applied. |
| 23 |
* |
| 24 |
* The event listener method receives a cweagans\Composer\PatchEvent instance. |
| 25 |
* |
| 26 |
* @var string |
| 27 |
*/ |
| 28 |
const POST_PATCH_APPLY = 'post-patch-apply'; |
| 29 |
|
| 30 |
} |
| 31 |
|