Skip to content

Commit

Permalink
Add back-compat alias for Pacakage::ACTION_FAILED_CONNECTION
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Aug 29, 2024
1 parent 127523b commit ab5c8a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Package
/**
* Action fired when a package connection failed.
*/
public const ACTION_FAILED_CONNECT = 'failed-connect';
public const ACTION_FAILED_CONNECT = 'failed-connection';

/**
* Action fired when a package is connected successfully.
Expand Down Expand Up @@ -156,6 +156,8 @@ class Package
public const STATUS_MODULES_ADDED = self::STATUS_BOOTING;
/** @deprecated */
public const ACTION_READY = self::ACTION_BOOTED;
/** @deprecated */
public const ACTION_FAILED_CONNECTION = self::ACTION_FAILED_CONNECT;

// Map of status to package-specific and global hook, both optional (i..e, null).
private const STATUSES_ACTIONS_MAP = [
Expand Down

0 comments on commit ab5c8a3

Please sign in to comment.