Di

Dependency injection containers library

package

Kocuj\Di

Methods

Constructor

__construct() 
codeCoverageIgnore

Copy container

copy(\Kocuj\Di\Container\ContainerInterface $fromContainer) : \Kocuj\Di\Container\ContainerInterface
codeCoverageIgnore

Arguments

$fromContainer

\Kocuj\Di\Container\ContainerInterface

Container from which copy will be made

Response

\Kocuj\Di\Container\ContainerInterface

Copied container

Create dependency injection container for services

create() : \Kocuj\Di\Container\ContainerInterface
codeCoverageIgnore

Response

\Kocuj\Di\Container\ContainerInterface

New container

Get default dependency injection container for services

getDefault() : \Kocuj\Di\Container\ContainerInterface
codeCoverageIgnore

Response

\Kocuj\Di\Container\ContainerInterface

Default container

Properties

Service identifier decorator

serviceIdDecorator : \Kocuj\Di\ServiceIdDecorator\ServiceIdDecoratorInterface

Service factory

serviceFactory : \Kocuj\Di\Service\ServiceFactoryInterface

Default dependency injection container for services

defaultContainer : \Kocuj\Di\Container\ContainerInterface