AutowiringException
Class
extends
RuntimeException
implements
ContainerExceptionInterface
Final:
Yes
Signals a constructor dependency graph that cannot be inferred.
Description
Optional arguments MAY use their defaults for this structural failure. Execution failures and cycles MUST use ContainerException instead.
Interfaces
Methods
forUnresolvableParameter()
: self
Creates an exception for a constructor parameter without an inferable value.
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
Parameters
$class
:
string
Description
the class that declares the constructor
$parameter
:
string
Description
the parameter name
$type
:
string|null
Description
the declared type, or null for an untyped parameter
$previous
:
Throwable|null
=
null
Description
the structural dependency resolution failure
Return values
self
Description
an exception identifying the parameter and preserving its cause