[PR #9074] Deprecate ensureProductionSettings() #11356

Closed
opened 2026-01-22 16:10:31 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: Yes


Doctrine does not provide its own cache implementation anymore and relies on the PSR-6 standard instead. As a consequence, we cannot determine anymore whether a given cache adapter is suitable for a production environment.

The corresponding functionality has always been error-prone. For instance if cache adapters are decorated, the orm:ensure-production-settings command would not complain anymore. By adopting PSR-6, this gets even harder because we would need to have internal knowledge of any PSR-6 compatible library a user might potentially use.

Moreover, I really don't think that we should offer this kind of inspection and therefore propose to remove it.

**Original Pull Request:** https://github.com/doctrine/orm/pull/9074 **State:** closed **Merged:** Yes --- Doctrine does not provide its own cache implementation anymore and relies on the PSR-6 standard instead. As a consequence, we cannot determine anymore whether a given cache adapter is suitable for a production environment. The corresponding functionality has always been error-prone. For instance if cache adapters are decorated, the `orm:ensure-production-settings` command would not complain anymore. By adopting PSR-6, this gets even harder because we would need to have internal knowledge of any PSR-6 compatible library a user might potentially use. Moreover, I really don't think that we should offer this kind of inspection and therefore propose to remove it.
admin added the pull-request label 2026-01-22 16:10:31 +01:00
admin closed this issue 2026-01-22 16:10:31 +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#11356