Skip to content
docs

ServiceNotFoundException

Thrown when a requested service identifier is not registered in the container and cannot be auto-resolved (PSR-11 "not found" contract).

ServiceNotFoundException::forId()

public static function forId(string $id): self

Builds the exception for a missing service identifier.

Parameters

Parámetros de forId()
NombreTipoDescripción
$idstringService identifier that was requested