Skip to content

"Psr\Container\ContainerInterface" autowiring alias is deprecated #1

@GandonNicolas

Description

@GandonNicolas

Bonjour ici !

Je suis en train de faire le tour des Deprecations d'une appli Symfony 5.4 pour upgrade en 6.0 et là on me dit :

Since symfony/dependency-injection 5.1: The "Psr\Container\ContainerInterface" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it. It is being referenced by the "umanit_front_static_controller" service.

La déclaration dans le services.yaml :

1    umanit_front_static_controller:
2        class: Umanit\FrontBundle\Controller\StaticController
3        calls:
4            - [setContainer, ['@Psr\Container\ContainerInterface']]
5        tags: ['controller.service_arguments']

De ce que je comprends c'est la déclaration ligne 4 @Psr\Container\ContainerInterface' qui posent problème ?

Du coup ma question est, est-ce qu'on peut mettre à jour cette partie du bundle ? si oui, comment ?

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