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

[DI] Service deprecation gets lost for privates #23536

Copy link
Copy link
Closed
@ro0NL

Description

@ro0NL
Issue body actions
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

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