mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #9661] Deprecate the doctrine binary #11784
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/9661
State: closed
Merged: Yes
Follows doctrine/dbal#5084
Part of #7498
This PR deprecates the
vendor/bin/doctrinebinary.Today, the ORM is usually configured by some kind of framework integration, like DoctrineBundle. In those cases, the existence of a
vendor/bin/doctrinebinary is highly confusing. When invoking it, the binary will simply not work and tell the user to create some configuration file. This is misleading because the integration package will most likely take care of boostrapping the entity manager and sets up the commands properly. In the context of a full-stack Symfony application, DoctrineBundle would merge the ORM's commands into the applicationsbin/consolescript.Of course, there's still the possibility of using the ORM standalone. For this case, I have documented how to set up the a
bin/doctrinebinary. Setting up that binary is not really more complicated than setting up thecli-config.phpscript that would be required to make thevendor/bin/doctrinescript work.Moreover, it puts the developer in control over how the console is bootstrapped for their application. They can find out more easily how to set up the console for multiple entity managers or how to add more commands to it.