8000 GitHub - pc-magas/di: A simple depedency Injection Container · GitHub
[go: up one dir, main page]

Skip to content
pc-magasPublic

About

A simple depedency Injection Container

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0