Download the PHP package bleicker/objectmanager without Composer
On this page you can find all versions of the php package bleicker/objectmanager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package objectmanager
Info
ObjectManager is a container to register objects
Usage
- ObjectManager::register(MyClassInterface::class, new MyClass('foo', 'bar'));
- Getting the Object everywhere in your Code with ObjectManager::get(MyClassInterface::class);
Registering a Closure as Factory
- ObjectManager::register(MyClassInterface::class, function(){new MyClass()});
- To make it a singleton just register it as this: ObjectManager::makeSingleton(MyClassInterface::class);
- Getting the Object everywhere in your Code with ObjectManager::get(MyClassInterface::class);
All versions of objectmanager with dependencies
PHP Build Version
Package Version
The package bleicker/objectmanager contains the following files
Loading the files please wait ....