Skip to content

pc-magas/di

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Depedency Injection System

In order to work please create the following json:

{
	"service1":{
		class: ^namespace for the class^
		depedencies:[^name for the first service^,^name for the second service^,...,^name for the nth service^]
	},
	.
	.
	.		
	"service_n":
	{
		class: ^namespace for the class^
		depedencies:[^name for the first service^,^name for the second service^,...,^name for the nth service^]
	}
}

Into a file.

Then to use it please use:

use DI\Container;
Resolver r= new DIResolver('^path of the json file^');

About

A simple depedency Injection Container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages