ContainerInterface
interface ContainerInterface implements ContainerInterface (View source)
Methods
set(string $id, callable|object|string $concrete)
void
singleton(string $id, callable|object|string $concrete)
void
setDiagnosticLogger(LoggerInterface|null $logger)
void
has(string $id)
bool
isBound(string $id)
Returns true only when the id is explicitly known by the container.
bool
get(string $id)
mixed
Details
set
void
set(string $id, callable|object|string $concrete)
No description
singleton
void
singleton(string $id, callable|object|string $concrete)
No description
setDiagnosticLogger
void
setDiagnosticLogger(LoggerInterface|null $logger)
No description
has
bool
has(string $id)
No description
isBound
bool
isBound(string $id)
Returns true only when the id is explicitly known by the container.
get
mixed
get(string $id)
No description