Standard

Implements \Kocuj\Di\Service\ServiceInterface

Standard service creator

package

Kocuj\Di\Service\Standard

Methods

Constructor

__construct(\Kocuj\Di\ArgumentParser\ArgumentParserFactoryInterface $argumentParserFactory, \Kocuj\Di\Container\ContainerInterface $container, string $id, string $source, array $arguments = array()) 

Arguments

$argumentParserFactory

\Kocuj\Di\ArgumentParser\ArgumentParserFactoryInterface

Service argument parser factory

$container

\Kocuj\Di\Container\ContainerInterface

Dependency injection container for services

$id

string

Service identifier

$source

string

Source for service to create

$arguments

array

Service arguments to parse

Get service

getService() : object
see \Kocuj\Di\Service\ServiceInterface::getService()

Response

object

Service object

Properties

Service argument parser factory

argumentParserFactory : \Kocuj\Di\ArgumentParser\ArgumentParserFactoryInterface

Dependency injection container for services

container : \Kocuj\Di\Container\ContainerInterface

Service identifier

id : string
var

Type(s)

string

Source for service to create

source : string
var

Type(s)

string

Service arguments to parse

arguments : array
var

Type(s)

array