\Vegas\DIServiceManager

Class ServiceManager

Summary

Methods
Properties
Constants
setDI()
getDI()
get()
getService()
has()
hasService()
No public properties found
No constants found
No protected methods found
$di
N/A
No private methods found
No private properties found
N/A

Properties

$di

$di : \Phalcon\DiInterface

Dependency injector

Type

\Phalcon\DiInterface

Methods

setDI()

setDI(\Phalcon\DiInterface $dependencyInjector) : $this

Sets the dependency injector

Parameters

\Phalcon\DiInterface $dependencyInjector

Returns

$this

getDI()

getDI() : \Phalcon\DiInterface

Returns the internal dependency injector

Returns

\Phalcon\DiInterface

get()

get( $name) : object

Alias for getService.

Parameters

$name

Returns

object

getService()

getService( $name) : object

Try to register and return service.

Parameters

$name

Throws

\Vegas\DI\Service\Exception

Returns

object

has()

has( $name) : boolean

Alias for hasService.

Parameters

$name

Returns

boolean

hasService()

hasService( $name) : boolean

Try to register service and return information about service existence.

Parameters

$name

Returns

boolean