Skip to content

[Messenger] Autoconfigurable attributes #15990

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 2 commits into from
Jan 19, 2022

Conversation

alirezamirsepassi
Copy link
Contributor

@alirezamirsepassi alirezamirsepassi commented Oct 22, 2021

@carsonbot carsonbot added this to the 5.4 milestone Oct 22, 2021
Tobion added a commit to symfony/symfony that referenced this pull request Oct 25, 2021
…assi)

This PR was squashed before being merged into the 5.4 branch.

Discussion
----------

[Messenger] Autoconfigurable attributes

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #41106
| License       | MIT
| Doc PR        | symfony/symfony-docs#15990

Commits
-------

f27e594 [Messenger] Autoconfigurable attributes
symfony-splitter pushed a commit to symfony/messenger that referenced this pull request Oct 25, 2021
…assi)

This PR was squashed before being merged into the 5.4 branch.

Discussion
----------

[Messenger] Autoconfigurable attributes

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #41106
| License       | MIT
| Doc PR        | symfony/symfony-docs#15990

Commits
-------

f27e594bad [Messenger] Autoconfigurable attributes
symfony-splitter pushed a commit to symfony/framework-bundle that referenced this pull request Oct 25, 2021
…assi)

This PR was squashed before being merged into the 5.4 branch.

Discussion
----------

[Messenger] Autoconfigurable attributes

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #41106
| License       | MIT
| Doc PR        | symfony/symfony-docs#15990

Commits
-------

f27e594bad [Messenger] Autoconfigurable attributes
@alirezamirsepassi
Copy link
Contributor Author

Any update on this PR ? @nicolas-grekas

@94noni
Copy link
Contributor

94noni commented Dec 28, 2021

Maybe just document that attributes requires php v8 (the feature is on v5.4 thus v8 is not mandatory like v6)

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

this should target 6.0 to me

messenger.rst Outdated
message interface)::
create a class using :class:`Symfony\\Component\\Messenger\\Attribute\\AsMessageHandler`
attribute which has an ``__invoke()`` method that's type-hinted with the
message class (or a message interface) or you can create a class without the attribute, by implementing
Copy link
Member

Choose a reason for hiding this comment

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

I'd remove the mention of the interface

@wouterj wouterj merged commit 01be48d into symfony:5.4 Jan 19, 2022
@wouterj
Copy link
Member

wouterj commented Jan 19, 2022

Thank you @alirezamirsepassi for providing docs with your code contributions.

I've applied all suggestions made by @nicolas-grekas and added some directives indicating this is a new feature. I did however merge it in 5.4, as that's where this was introduced (which is similar to other PHP attribute we've documented for 5.3/5.4).

wouterj added a commit that referenced this pull request Jan 19, 2022
* 5.4:
  [#15990] Minor changes
  [Messenger] Autoconfigurable attributes
wouterj added a commit that referenced this pull request Jan 19, 2022
* 6.0:
  Removed 5.4 versionadded
  [#15990] Minor changes
  [Messenger] Autoconfigurable attributes
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