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

ServiceLocators' tags are not autoconfigured #26187

Copy link
Copy link
Closed
@apfelbox

Description

@apfelbox
Issue body actions
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 4.0.4

Hi,

in a service definition with:

services:
    _defaults:
        autoconfigure: true

    locator.abc:
        class: Symfony\Component\DependencyInjection\ServiceLocator
        tags: ['container.service_locator'] # <- add this automatically
        arguments:
            -   ...

I would have assumed, that the (required) tag container.service_locator is autoconfigured as the class is a ServiceLocator and probably needs the tag. Is there a specific reason, why this isn't configured automatically?

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.