piotrkreft / eager-resettable-services-bundle
Flexible management of Symfony resettable services
Installs: 43
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.2.5
- symfony/config: ^4.2|^5.0
- symfony/dependency-injection: ^4.0|^5.0
- symfony/http-kernel: ^4.0|^5.0
Requires (Dev)
- piotrkreft/ci: ^0.2
- symfony/framework-bundle: ^4.0|^5.0
- symfony/yaml: ^4.0|^5.0
This package is auto-updated.
Last update: 2024-05-22 18:27:47 UTC
README
Symfony bundle for eager instantiating resettable services.
Introduction
For some edge cases it might be required that service gets reset regardless of being referenced by other services.
An example of that would be doctrine
Registry holding Entity Managers.
It does not reset managers unless it is being referenced by other services and therefore instantiated by the container.
This bundle by the configuration allows you to reconfigure services to be eagerly instantiated within Services Resetter.
Installation
composer require piotrkreft/eager-resettable-services-bundle
Usage
Alternatively all services can be eager loaded wth all_services
configuration flag.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see LICENSE for more information.