You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The status for the events inside the queue are currently coded at multiple places.
Since PHP 8 it is possible to use enums, which is a easy way to define these status
enum EventState {
case New;
case Pending;
case Claimed;
case Failed;
case Deferred;
case All;
publicfunctiontoLower(): string
{
returnstrtolower($this->name);
}
}
The value of the enum could be accessed via name and be used as values for the database:
The text was updated successfully, but these errors were encountered:
3l73
changed the title
[Improvement] TYPO3 12: Use php Enum for event status
[Improvement] TYPO3 12: Use php Enum for event type and status
Oct 4, 2024
The status for the events inside the queue are currently coded at multiple places.
Since PHP 8 it is possible to use enums, which is a easy way to define these status
The value of the enum could be accessed via name and be used as values for the database:
Since the enum can be used as argument for methods, this can be used instead of constants.
Example:
The text was updated successfully, but these errors were encountered: