Skip to content

InjectionException

Properties

dependencyChain

public array $dependencyChain

Methods

__construct

public __construct(array $inProgressMakes, mixed $message = "", mixed $code, ?\ReflectionException $previous = null): mixed

Parameters:

Parameter Type Description
$inProgressMakes array
$message mixed
$code mixed
$previous ?\ReflectionException

fromInvalidCallable

Add a human-readable version of the invalid callable to the standard 'invalid invokable' message.

public static fromInvalidCallable(array $inProgressMakes, string|array|object $callableOrMethodStr, ?\ReflectionException $previous = null): mixed
  • This method is static.

Parameters:

Parameter Type Description
$inProgressMakes array
$callableOrMethodStr string|array|object
$previous ?\ReflectionException

getDependencyChain

Returns the hierarchy of dependencies that were being created when the exception occurred.

public getDependencyChain(): array


Automatically generated on 2025-10-13