You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actions edited this page Mar 27, 2026
·
2 revisions
Exception thrown when a requested service identifier is not found in the container.
This class MUST be used in PSR-11 container implementations to represent an error
condition where a service ID does not exist in the container. It implements the
Psr\Container\NotFoundExceptionInterface to guarantee interoperability with PSR-11 consumers.
Full name: \FastForward\Container\Exception\NotFoundException
This class is marked as final and can't be subclassed
This class implements:
NotFoundExceptionInterface
This class is a Final class
Methods
forServiceID
Creates a new NotFoundException for a missing service identifier.
publicstaticforServiceID(string $id): self
This factory method SHOULD be used by the container implementation to report
the absence of a given service ID. The resulting exception message SHALL clearly
indicate which identifier was not resolved.
This method is static.
Parameters:
Parameter
Type
Description
$id
string
the service identifier that was not found
Return Value:
an instance of NotFoundException describing the missing service