A simple package to automatically mark a class as singleton.
-
Updated
Mar 25, 2023 - PHP
A simple package to automatically mark a class as singleton.
This library is a Singleton (anti)pattern implementation using a Traits with a support for an Object Inheritance and passing parameters to the constructor.
Add a description, image, and links to the singletons topic page so that developers can more easily learn about it.
To associate your repository with the singletons topic, visit your repo's landing page and select "manage topics."