Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Messenger] Change AmqpExt classes constructor signature #28419

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

Merged
merged 1 commit into from
Sep 10, 2018

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Sep 10, 2018

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? yes
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

This pull requests does 2 things:

  • It makes Connection a first argument of AmqpExt classes. I think it makes sense as this is the most important argument for those classes.

  • As the Serializer is now a second argument, I propose to make it optional and use the default serializer that we've added recently if null (Serializer::create())

It makes the component even more user friendly when not using Symfony full stack (and provide good defaults).

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

Nice!

@fabpot fabpot merged commit 2d55ae5 into symfony:master Sep 10, 2018
fabpot added a commit that referenced this pull request Sep 10, 2018
…re (fabpot)

This PR was merged into the 4.2-dev branch.

Discussion
----------

[Messenger] Change AmqpExt classes constructor signature

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | yes
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

This pull requests does 2 things:

 * It makes `Connection` a first argument of AmqpExt classes. I think it makes sense as this is the most important argument for those classes.

 * As the `Serializer` is now a second argument, I propose to make it optional and use the default serializer that we've added recently if `null` (`Serializer::create()`)

It makes the component even more user friendly when not using Symfony full stack (and provide good defaults).

Commits
-------

2d55ae5 [Messenger] changed AmqpExt classes constructor signature
@sroze
Copy link
Contributor

sroze commented Sep 10, 2018

Thank you @fabpot.

This was referenced Nov 3, 2018
@fabpot fabpot deleted the amqp-transport branch January 14, 2019 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants