-
Notifications
You must be signed in to change notification settings - Fork 389
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
Fix/refactor creation of RabbitMQ Connection and QueueAPI #528
Fix/refactor creation of RabbitMQ Connection and QueueAPI #528
Conversation
- reverted to minimal requirement update
- reverted to minimal requirement update
- Connection disconnected by default (Lazy)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the main structure is good.
The only thing I think should be updated is the use of final
and private
.
As it stands today this package uses the private
keyword only once and never ever uses final
. If memory serves well, a couple years ago, the opposite was true. I think it better to keep the same approach here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work on those factories; this is a huge improvement.
I've added a couple minor grammatical changes to the README, but other than that, this looks great.
- Prior to PHP 8.0 constant() returned null and an E_WARNING, so default could be set easily. Sinds PHP 8.0 an ERROR exception is thrown. - added a defined() check.
- added null values in testing config - testing defaults - testing logic
Co-authored-by: Matt Grande <[email protected]>
Co-authored-by: Matt Grande <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great to see! I started working on a branch with factories but this is much better than any of the code I had.
Thank you for working on this!
Could you guys, please have a new look at this PR. If all is ok and tested, this can be merged. [version: v13.3.0] |
…ions-and-queues' into fix/refactor-creation-of-connections-and-queues
…unnecessary times.
- issue #460 - rework based on [comment](#531 (comment))
Thanks @adm-bome this is great |
Refactor:
Creating Connection with config via a factory.
Creating QueueAPI with config via a factory.
#513, #521, #527, #487 and #460