# imagify/2.3.0/vendor/cweagans/composer-patches/src/PatchEvents.php

Imagify Image Optimization: Optimize Images | Compress &amp; Convert to WebP/AVIF, version 2.3.0. 31 lines.

- Page: https://pluginprobe.com/plugins/imagify/2.3.0/code/vendor/cweagans/composer-patches/src/PatchEvents.php
- Raw: https://pluginprobe.com/plugins/imagify/2.3.0/raw/vendor/cweagans/composer-patches/src/PatchEvents.php
- Modified: 2026-07-08T07:25:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/imagify/2.3.0/code/vendor/cweagans/composer-patches/src/PatchEvents.php#L10-L20`.

```php
<?php

/**
 * @file
 * Dispatch events when patches are applied.
 */

namespace cweagans\Composer;

class PatchEvents {

  /**
   * The PRE_PATCH_APPLY event occurs before a patch is applied.
   *
   * The event listener method receives a cweagans\Composer\PatchEvent instance.
   *
   * @var string
   */
  const PRE_PATCH_APPLY = 'pre-patch-apply';

  /**
   * The POST_PATCH_APPLY event occurs after a patch is applied.
   *
   * The event listener method receives a cweagans\Composer\PatchEvent instance.
   *
   * @var string
   */
  const POST_PATCH_APPLY = 'post-patch-apply';

}

```
