DoDomuDojade Documentation

Container
in package
implements ContainerInterface

FinalYes

Table of Contents

Interfaces

ContainerInterface

Properties

$factories  : array<string, Closure>
$instances  : array<string, mixed>

Methods

get()  : mixed
has()  : bool
set()  : void
autowire()  : object
resolveParameter()  : mixed

Properties

$factories

private array<string, Closure> $factories = []

$instances

private array<string, mixed> $instances = []

Methods

get()

public get(string $id) : mixed
Parameters
$id : string
Tags
throws
ReflectionException

has()

public has(string $id) : bool
Parameters
$id : string
Return values
bool

set()

public set(string $id, Closure $factory) : void
Parameters
$id : string
$factory : Closure

autowire()

private autowire(string $class) : object
Parameters
$class : string
Tags
throws
ReflectionException
Return values
object

resolveParameter()

private resolveParameter(ReflectionParameter $param) : mixed
Parameters
$param : ReflectionParameter
Tags
throws
ReflectionException

        
On this page

Search results