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

[DependencyInjection] Documented the new @> shorthand #20528

Open
wants to merge 2 commits into
base: 7.3
Choose a base branch
from

Conversation

chx
Copy link
Contributor

@chx chx commented Jan 6, 2025

Fixes #20525

@carsonbot carsonbot added this to the 7.3 milestone Jan 6, 2025
@carsonbot carsonbot changed the title Documented the new @> shorthand [DependencyInjection] Documented the new @> shorthand Jan 6, 2025
# In case the dependency is optional
# arguments: [!service_closure '@?mailer']

# Using the shorthand
# arguments: ['@>?mailer']

Copy link
Contributor

Choose a reason for hiding this comment

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

We should add versionadded directive. Maybe after the last seealso

.. versionadded:: 7.3

    The ``@>`` shorthand was introduced in Symfony 7.3.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this sufficient? I also reordered the examples so both shorthands are together.

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