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

Since symfony/dependency-injection 6.4: "Symfony\Bridge\Doctrine\DataFixtures\ContainerAwareLoader" is deprecated, use dependency injection in your fixtures instead. #420

Open
ruudk opened this issue Dec 18, 2023 · 9 comments

Comments

@ruudk
Copy link
Contributor

ruudk commented Dec 18, 2023

How can we silence this deprecation? We're not using the ContainerAwareLoader.

We're using:

symfony/doctrine-bridge               v6.4.0
doctrine/data-fixtures                1.7.0
doctrine/doctrine-fixtures-bundle     3.5.1

I saw this problem being predicted in #395 but I don't think there is a solution yet.

@derrabus
Copy link
Member

The warning should be gone if you upgrade the bridge to v7, but I realize that this might not be the answer you're looking for. 🙈

Maybe we could add an option to opt-out of using that class?

@ruudk
Copy link
Contributor Author

ruudk commented Dec 21, 2023

Upgrading to 7.0 solves it for me.

@ruudk ruudk closed this as completed Dec 21, 2023
@derrabus
Copy link
Member

Thanks for the feedback, but let's leave the issue open. We should try to find a solution for Symfony 6.4 projects.

@derrabus derrabus reopened this Dec 21, 2023
@stanislav-oop

This comment was marked as off-topic.

@derrabus

This comment was marked as off-topic.

@Natizyskunk

This comment was marked as off-topic.

@greg0ire

This comment was marked as off-topic.

@stanislav-oop

This comment was marked as off-topic.

@derrabus
Copy link
Member

derrabus commented Apr 3, 2024

Folks.

  • Nobody says that you cannot use Symfony 6.4 anymore.
  • Nobody's actively working on a solution yet.
  • Anyone can open a PR and propose a solution.

I hope that answers all open questions. ✌️

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

5 participants