interface ContainerInterface implements ContainerInterface (View source)

Methods

void
set(string $id, callable|object|string $concrete)
void
void
singleton(string $id, callable|object|string $concrete)
void
void
setDiagnosticLogger(LoggerInterface|null $logger)
void
bool
has(string $id)
bool
bool
isBound(string $id)

Returns true only when the id is explicitly known by the container.

bool
mixed
get(string $id)
mixed

Details

set

void set(string $id, callable|object|string $concrete)

No description

Parameters

string $id
callable|object|string $concrete

Return Value

void

singleton

void singleton(string $id, callable|object|string $concrete)

No description

Parameters

string $id
callable|object|string $concrete

Return Value

void

setDiagnosticLogger

void setDiagnosticLogger(LoggerInterface|null $logger)

No description

Parameters

LoggerInterface|null $logger

Return Value

void

has

bool has(string $id)

No description

Parameters

string $id

Return Value

bool

isBound

bool isBound(string $id)

Returns true only when the id is explicitly known by the container.

Parameters

string $id

Return Value

bool

get

mixed get(string $id)

No description

Parameters

string $id

Return Value

mixed