Skip to content

[DependencyInjection] Wrong method call order #28654

@tsantos84

Description

@tsantos84

Symfony version(s) affected: 4.1.5

Description
Symfony DI is dumping the container in wrong order causing a Undefined variable b exception.

How to reproduce
I've created a gist containing the XML version of the entire container and the compiled PHP service that is causing the error:

https://gist.github.com/tsantos84/13683b3341b76a2d2991540e2d12c2c0

In this gist you can see that the method calls is called before the service instantiation. (lines 16 and 20).

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