Dependency injection container interface
package |
Kocuj\Di\Container |
---|
add(\Kocuj\Di\Service\ServiceType $serviceType, string $id, string $source, array $arguments = array()) : \Kocuj\Di\Container\ContainerInterface
string
Service identifier
string
Service to create
array
Service arguments to inject into constructor
\Kocuj\Di\Container\ContainerInterface
This object
addShared(string $id, string $source, array $arguments = array()) : \Kocuj\Di\Container\ContainerInterface
string
Service identifier
string
Service to create
array
Service arguments to inject into constructor
\Kocuj\Di\Container\ContainerInterface
This object
addStandard(string $id, string $source, array $arguments = array()) : \Kocuj\Di\Container\ContainerInterface
string
Service identifier
string
Service to create
array
Service arguments to inject into constructor
\Kocuj\Di\Container\ContainerInterface
This object
checkType(string $id, \Kocuj\Di\Service\ServiceType $serviceType) : boolean
string
Service identifier
boolean
This service has selected type (true) or not (false)
getType(string $id) : \Kocuj\Di\Service\ServiceType