Skip to content

[Messenger] Make sure default receiver name is set before command configuration #27224

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
May 11, 2018

Conversation

yceruto
Copy link
Member

@yceruto yceruto commented May 10, 2018

Q A
Branch? 4.1
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #27203
License MIT
Doc PR -

Otherwise the receiver's name would still be required always.

Copy link
Contributor

@sroze sroze left a comment

Choose a reason for hiding this comment

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

Can you add a test to prove it fixed it?

@yceruto
Copy link
Member Author

yceruto commented May 10, 2018

Status: Needs Review

@yceruto yceruto changed the title [Messenger] Make sure default receiver name is set on command configuration [Messenger] Make sure default receiver name is set before command configuration May 10, 2018
@sroze sroze force-pushed the messenger_default_receiver branch from 95ddd4f to 63871c9 Compare May 11, 2018 07:44
@sroze
Copy link
Contributor

sroze commented May 11, 2018

Thank you @yceruto.

@sroze sroze merged commit 63871c9 into symfony:4.1 May 11, 2018
sroze added a commit that referenced this pull request May 11, 2018
…command configuration (yceruto)

This PR was squashed before being merged into the 4.1 branch (closes #27224).

Discussion
----------

[Messenger] Make sure default receiver name is set before command configuration

| Q             | A
| ------------- | ---
| Branch?       | 4.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #27203
| License       | MIT
| Doc PR        | -

Otherwise the receiver's name would still be required always.

https://github.com/symfony/symfony/blob/3cc4a701e6f24cb2eaaf1234b331f182dea0c9b4/src/Symfony/Component/Console/Command/Command.php#L77

Commits
-------

63871c9 [Messenger] Make sure default receiver name is set before command configuration
@yceruto yceruto deleted the messenger_default_receiver branch May 11, 2018 11:04
sroze added a commit that referenced this pull request May 17, 2018
…g or typo (yceruto)

This PR was merged into the 4.1 branch.

Discussion
----------

[Messenger] Select alternatives on missing receiver arg or typo

| Q             | A
| ------------- | ---
| Branch?       | 4.1
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

If there is more than one receiver available - `bin/console messenger:consume-messages`:
![messenger_consume_missing](https://user-images.githubusercontent.com/2028198/39895594-d4f652c6-5478-11e8-87cf-a1e08e681320.png)

If typo and there is similarities - `bin/console messenger:consume-messages amq`:
![messenger_consume_typo](https://user-images.githubusercontent.com/2028198/39895599-d9f0705e-5478-11e8-9d6b-59d62930d4cb.png)

requires #27224

Commits
-------

54c2541 Select alternatives on missing receiver arg or typo
symfony-splitter pushed a commit to symfony/messenger that referenced this pull request May 17, 2018
…g or typo (yceruto)

This PR was merged into the 4.1 branch.

Discussion
----------

[Messenger] Select alternatives on missing receiver arg or typo

| Q             | A
| ------------- | ---
| Branch?       | 4.1
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

If there is more than one receiver available - `bin/console messenger:consume-messages`:
![messenger_consume_missing](https://user-images.githubusercontent.com/2028198/39895594-d4f652c6-5478-11e8-87cf-a1e08e681320.png)

If typo and there is similarities - `bin/console messenger:consume-messages amq`:
![messenger_consume_typo](https://user-images.githubusercontent.com/2028198/39895599-d9f0705e-5478-11e8-9d6b-59d62930d4cb.png)

requires symfony/symfony#27224

Commits
-------

54c2541d94 Select alternatives on missing receiver arg or typo
@fabpot fabpot mentioned this pull request May 21, 2018
symfony-splitter pushed a commit to symfony/messenger that referenced this pull request Jan 28, 2020
…g or typo (yceruto)

This PR was merged into the 4.1 branch.

Discussion
----------

[Messenger] Select alternatives on missing receiver arg or typo

| Q             | A
| ------------- | ---
| Branch?       | 4.1
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

If there is more than one receiver available - `bin/console messenger:consume-messages`:
![messenger_consume_missing](https://user-images.githubusercontent.com/2028198/39895594-d4f652c6-5478-11e8-87cf-a1e08e681320.png)

If typo and there is similarities - `bin/console messenger:consume-messages amq`:
![messenger_consume_typo](https://user-images.githubusercontent.com/2028198/39895599-d9f0705e-5478-11e8-9d6b-59d62930d4cb.png)

requires symfony/symfony#27224

Commits
-------

54c2541d94 Select alternatives on missing receiver arg or typo
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.

5 participants