Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A possibility to set autowiring types of thirdparty services. #17783

Copy link
Copy link
Closed
@maryo

Description

@maryo
Issue body actions

I'm missing a possibility to set autowiring types of thirdparty (or framework) services.
I could imagine if one could set it using a service alias but not sure it's a good idea. Maybe there are better ways. It is probably already possible to set the autowiring type in a custom CompilerPass so maybe it's not a good idea at all. This would allow to do it in a configuration file.

Something like

<service id="app.annotation_reader" alias="annotation_reader">
    <autowiring-type>Doctrine\Common\Annotations\Reader</autowiring-type>
</service>

Use case is probably obvious. One could use it in case PRs like https://github.com/symfony/symfony/pull/17782/files were rejected

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.