Skip to content

jitesoft/php-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Container

Build Status

Simple and naïve implementation of a dependency container with constructor injection.

Usage

Bind a ID to a value, class or primitive with the $container->set($id, $value) method.
Fetch from the container with $container->get($id).

The container uses static arrays for its implementations and container data. So there can only be one container active at a time.

Better documentation will be available at a later point.

License

MIT

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages