Nextcloud PHP API (master)

IContainer extends ContainerInterface

Class IContainer

IContainer is the basic interface to be used for any internal dependency injection mechanism

Tags
since
6.0.0

Table of Contents

Methods

get()  : T : mixed)
Finds an entry of the container by its identifier and returns it.

Methods

get()

Finds an entry of the container by its identifier and returns it.

public get(T>|string $id) : T : mixed)
Parameters
$id : T>|string

Identifier of the entry to look for.

Tags
template
throws
NotFoundExceptionInterface

No entry was found for this identifier.

ContainerExceptionInterface

Error while retrieving the entry.

since
34.0.0
Attributes
#[Override]
Return values
T : mixed) —

Entry.

On this page

Search results