Skip to content

[DependencyInjection] add explanation for attribute option in factories.rst #21108

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

Open
wants to merge 1 commit into
base: 7.4
Choose a base branch
from

Conversation

santysisi
Copy link
Contributor

Description

This PR updates the Factory documentation to include information about the attribute option. This helps clarify how to use attributes when creating service factories.

@santysisi
Copy link
Contributor Author

Add doc for this PR

@OskarStark OskarStark added the Waiting Code Merge Docs for features pending to be merged label Jun 21, 2025
@carsonbot carsonbot modified the milestones: 7.4, next Jun 21, 2025

use Symfony\Component\DependencyInjection\Attribute\Autoconfigure;

// its necesary create a service for the factory
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo in necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad, thanks for your help!
I've made the change ❤️

@santysisi santysisi force-pushed the update-factory-docs-add-attribute-option branch from a9e0666 to 7a36eee Compare June 21, 2025 17:43
@santysisi
Copy link
Contributor Author

Hi 👋
Should we add a versionadded directive in this PR?
Thanks! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants