Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GandonNicolas opened this issue Oct 4, 2022 · 0 comments

Comments

@GandonNicolas
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant