ServiceFactoryInterface

Extends

Service factory interface

package

Kocuj\Di\Service

Methods

Create standard or shared service

create(\Kocuj\Di\Container\ContainerInterface $container, \Kocuj\Di\Service\ServiceType $serviceType, string $id, string $source, array $arguments = array()) : \Kocuj\Di\Service\ServiceInterface

Arguments

$container

\Kocuj\Di\Container\ContainerInterface

Dependency injection container for services

$serviceType

\Kocuj\Di\Service\ServiceType

Service type

$id

string

Service identifier

$source

string

Source for service to create

$arguments

array

Service arguments to parse

Response

\Kocuj\Di\Service\ServiceInterface

Service creator object