[PR #1221] Very simple refactoring of the setup class #9276

Open
opened 2026-01-22 16:03:48 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/1221

State: closed
Merged: No


Moved logic to instance methods.

This way, a project could depend on a Setup class instance (or extend it) and resolve it through a DI container.
To allow for BC, instance methods were renamed and a __callStatic magic method deals with finding them.
Tests were duplicated to test for static access and instance access.

**Original Pull Request:** https://github.com/doctrine/orm/pull/1221 **State:** closed **Merged:** No --- Moved logic to instance methods. This way, a project could depend on a Setup class instance (or extend it) and resolve it through a DI container. To allow for BC, instance methods were renamed and a `__callStatic` magic method deals with finding them. Tests were duplicated to test for static access and instance access.
admin added the pull-request label 2026-01-22 16:03:48 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#9276