Skip to content

[DI] Service deprecation gets lost for privates #23536

@ro0NL

Description

@ro0NL
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.2

Deprecations seem to get lost when a service is private, consider;

a:
    class: stdClass
    public: false
    deprecated: '%service_id% IS DEPRECATED'
b:
    class: stdClass
    public: true
    properties:
        a: '@a'

Calling get('b')->a works fine, however no deprecation is triggered. Making a public fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions