umanit/doctrine-singleton-bundle
Symfony bundle that registers Doctrine entities as singleton services, sharing one instance per request. Configure entities in the bundle config and inject them like any other service, avoiding manual instantiation and duplicate object state.
Umanit Doctrine Singleton Bundle adds first-class support for singleton entities in Symfony applications using Doctrine. It helps guarantee that an entity has a single shared row, simplifying global settings, configuration, and other one-instance domain objects while keeping persistence in Doctrine.
How can I help you explore Laravel packages today?