psr/container
The PSR-11 Container Interface defines core abstractions for dependency injection in PHP. It’s a standard abstraction, not an implementation—used by DI containers like Laravel’s Illuminate\Container. Essential for dependency management, ensuring interoperability across container implementations.
Throwable by Psr\Container\ContainerExceptionInterface; to avoid issues, PHP >= 7.4 is now requiredThrowable by Psr\Container\ContainerExceptionInterface; to avoid issues, PHP >= 7.4 is now requiredThrowable by Psr\Container\ContainerInterface, as it leads to inheritance issues when child classes implement the Throwable interface in addition to ContainerInterface under PHP versions prior to 7.4.Throwable by Psr\Container\ContainerInterface, as it leads to inheritance issues when child classes implement the Throwable interface in addition to ContainerInterface under PHP versions prior to 7.4.bool return typehint to Psr\Container\ContainerInterface::has(), in accordance with the PSR-11 type additions errata.This release modifies Psr\Container\ContainerExceptionInterface to extend the Throwable interface, ensuring that any implementation can actually be thrown as an exception type (the original intention of the specification).
This release adds the string typehint to the $id argument of each of the Psr\Container\ContainerInterface::get() and Psr\Container\ContainerInterface::has() methods. These were previously documented in the annotations and specification, and are added to the interfaces as part of the PSR-11 type additions errata.
Initial stable release, following acceptance of PSR-11.
How can I help you explore Laravel packages today?