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): selfBuilds the exception for a missing service identifier.
Parameters
| Nombre | Tipo | Descripción |
|---|---|---|
| $id | string | Service identifier that was requested |