Skip to content

AutowiringException

github-actions[bot] edited this page Oct 16, 2026 · 1 revision

Signals a constructor dependency graph that cannot be inferred.

Optional arguments MAY use their defaults for this structural failure. Execution failures and cycles MUST use ContainerException instead.


  • Full name: \FastForward\Container\Exception\AutowiringException
  • Parent class: RuntimeException
  • This class is marked as final and can't be subclassed
  • This class implements: ContainerExceptionInterface
  • This class is a Final class

Methods

forUnresolvableParameter

Creates an exception for a constructor parameter without an inferable value.

public static forUnresolvableParameter(string $class, string $parameter, string|null $type, \Throwable|null $previous = null): self
  • This method is static. Parameters:
Parameter Type Description
$class string the class that declares the constructor
$parameter string the parameter name
$type string|null the declared type, or null for an untyped parameter
$previous \Throwable|null the structural dependency resolution failure

Return Value:

an exception identifying the parameter and preserving its cause


Clone this wiki locally