A ServiceProviderInterface exposes the identifiers and the types of services provided by a container.
- author Nicolas Grekas
- author Mateusz Sip
- template T of mixed
Abstract
Interface
-
Implements
Psr\Container\ContainerInterface
Methods |
public
abstract
get
(
string
$id
) : ?
mixed
|
public
abstract
getProvidedServices
() :
array
Returns an associative array of service types keyed by the identifiers provided by the current container. Examples:
|
public
abstract
has
(
string
$id
) :
bool
|