Skip to content

"ContainerAware" controllers don't have the container injected #2

@mnapoli

Description

@mnapoli

Symfony has the ContainerAwareInterface interface to inject the whole container. Obviously PHP-DI doesn't support this (deliberately) but it breaks even simple containers using $this->getDoctrine() for example.

As a compromise, PHP-DI should inject the container until Symfony removes this ContainerAwareInterface (v3.0 maybe?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions