Exception type for container-related errors while resolving services.
This class MUST be used to signal problems occurring during service resolution from a container that complies with PSR-11.
\FastForward\Container\Exception\ContainerException
Exception
\Psr\Container\ContainerExceptionInterface
Creates an exception for an invalid or unresolvable service identifier.
public static forInvalidService(string $id, \Throwable $previous): self
This factory method MUST be invoked when a service ID fails to resolve or the resolved service is invalid in the current context.
Parameters:
$id
$previous
Return Value:
an instance of ContainerException describing the issue
Automatically generated on 2025-07-03
There was an error while loading. Please reload this page.