Skip to content

Reduce redundancy between service container and autowiring docs#22234

Open
lacatoire wants to merge 2 commits intosymfony:7.4from
lacatoire:reduce-autowiring-redundancy
Open

Reduce redundancy between service container and autowiring docs#22234
lacatoire wants to merge 2 commits intosymfony:7.4from
lacatoire:reduce-autowiring-redundancy

Conversation

@lacatoire
Copy link
Copy Markdown
Contributor

This addresses part of #22232 by reducing redundant content between
service_container.rst and service_container/autowiring.rst.

Changes:

  • Remove duplicate debug:autowiring output that appeared twice in
    service_container.rst (replace with a back-reference to the first
    occurrence)
  • Add a tip about the #[Autowire] attribute after the "Manually Wiring
    Arguments" section, pointing to the dedicated autowiring docs
  • Add a cross-reference to named autowiring aliases in the "choose a
    specific service" section
  • Expand the "The autowire Option" section with specific links to
    key topics covered in the autowiring page (multiple implementations,
    #[Autowire] attribute, closures)

Fixes #22232

Remove duplicate debug:autowiring output that was shown twice, add
cross-references to the dedicated autowiring page for #[Autowire]
attribute, named autowiring aliases and closures.
@carsonbot carsonbot added this to the 7.4 milestone Apr 10, 2026
@carsonbot carsonbot changed the title Reduce redundancy between service container and autowiring docs Reduce redundancy between service container and autowiring docs Apr 10, 2026
Move named autowiring aliases mention into a tip after the config block
to avoid interrupting the manual wiring flow. Fix parallel structure in
the expanded autowire section.
@lacatoire lacatoire force-pushed the reduce-autowiring-redundancy branch from a4eeaf3 to 128aff8 Compare April 10, 2026 21:13
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.

Integration of Autowiring docs into Service Container docs

2 participants