Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QueueMessageHandler Generator command #1

Closed
KinaneD opened this issue Dec 16, 2016 · 0 comments
Closed

QueueMessageHandler Generator command #1

KinaneD opened this issue Dec 16, 2016 · 0 comments
Assignees
Labels

Comments

@KinaneD
Copy link
Member

KinaneD commented Dec 16, 2016

This command should be a new command dedicated for generating the Handler class.

The overall process would be like:

  1. Define queue in ./Messaging/queues.php
  2. Generale Handler class in ./Messaging/Handlers/*.php
  3. Implement the BowlerExceptionHandler
  4. Run the consumer

Allow the user to generate the messageHandler class with all its required properties and methods:

  • private consumer.
  • public handle($msg)`
  • public handleError($e, $msg)
  • public setConsumer($consumer)`

Generating the handler will reduce the chances of missing required methods and/or properties.

ps: something similar to how lucid generate jobs, features, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants