Skip to content

[FrameworkBundle][Routing] deprecation error when decorating routing.loader #24886

@kbond

Description

@kbond
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.4-BETA

When decorating routing.loader in a compiler pass I get the following deprecation error when the container is built:

User Deprecated: The "routing.loader" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.

I can't figure out why this is happening.

Reference: umpirsky/UmpirskyI18nRoutingBundle#17
CompilerPass: https://github.com/umpirsky/UmpirskyI18nRoutingBundle/blob/a69bd4dcc901c3459aba20f8e586613a5758d05b/src/DependencyInjection/Compiler/OverrideRoutingCompilerPass.php

profiler

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions