Skip to content

Be more clear about the class option for services created by a factory #4368

Closed
@xabbuh

Description

@xabbuh

When creating a service through a factory, the value chosen for the class option has no actual effect since the final class only depends on the object returned by the factory. However, the configured class may be reused by compiler passed and therefore should be set to a sensible value. This should be made clear in the component's documentation about service factories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DependencyInjectionactionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions