Skip to content

storinka/invoke-service-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Invoke Service Container

WIP...

Installation

composer require storinka/invoke-service-container

Usage

use Invoke\Di\ServiceContainer;

$container = new ServiceContainer();

$container->singleton(AbstractService::class, Service::class);
$container->singleton(AbstractService::class, new Service());
$container->singleton(AbstractService::class, fn() => new Service());

$service = $container->get(AbstractService::class);

About

Simple Dependency Injection Container

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages