Skip to content

Conversation

@nick-potts
Copy link
Contributor

@nick-potts nick-potts commented Jan 24, 2025

Added the ability to filter event replay by tags. This allows replaying only specific types of events based on their tags.

Changes include:

  • New Tag attribute for marking event handlers with one or more tags
  • Added --tag option to verbs:replay command
  • Tags are case-insensitive
  • Enabled prefixing for handle methods

Example usage:

// Single tag
#[Tag('email')]
public function handleSendEmail() { ... }

// Multiple tags
#[Tag(['billing', 'important'])] 
public function handleProcessBilling() { ... }

CLI usage:
verbs:replay --tag=email
verbs:replay --tag=email --tag=billing

{
foreach ($phases as $phase) {
$this->phases[$phase] = true;
if (! isset($this->phases[$phase])) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant