mini\Exceptions\DependencyInjectionException class

Documentation

Thrown when dependency injection fails

This exception indicates that a required dependency could not be resolved during constructor or method injection. Common causes:

  • No named argument provided and no service registered for the type
  • Parameter has no type hint and no named argument provided
  • Variadic parameter provided with non-array value

Inheritance

Extends: Exception

Implements: Stringable Throwable Psr\Container\ContainerExceptionInterface

Properties (4)

protected mixed $message
protected mixed $code
protected string $file
protected int $line

Methods (10)

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Source

src/Exceptions/DependencyInjectionException.php:15-17