mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #8957] Only wire ConnectionHelper if it's available #11285
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/8957
State: closed
Merged: Yes
DBAL deprecated its
ConnectionHelperclass, a helper for Symfony console applications. I propose to not use that class if it's not there.Part of #8884, #8885.
I haven't found any tests nor usage of the
createHelperSet()method I've changed here. The other helper that is wired here simply exposes agetEntityManager()method that… well… returns an entity manager. In modern Symfony applications, we would probably use DI to make the EM available to commands. I feel like we should follow the example of DBAL here and deprecatecreateHelperSet(),EntityManagerHelperand related classes and change our own commands to use DI instead. That could be done in a follow-up PR. WDYT?