Repository navigation
3.0.0
3.0.0
Changed
- Add support for a default value in the
lucatume\DI52\Container::getVar(string $key, mixed $default = null) :mixedmethod. - The
lucatume\DI52\Container::setVar(string $key, mixed $value) :voidwill not try to run callables when
storing variables on the container using the method. As such, the need to protect the variables when using
thesetVar()method is no more required. - The
lucatume\DI52\Container::tagged(string $tag) :arraymethod will now return an empty array if nothing was
tagged with the tag; it would throw an error in previous versions. - Rewritten the code to fully leverage Closure support.
- Move build tools to Docker.
- Make the container implementation compatible with [PSR-11 Container specification](https://www.php-fig.
org/psr/psr-11/) - Fix #26 to handle and format files syntax errors while trying to autoload.
- Fix #13 and allow explicit definition of default binding method.
- Allow getting the registered provider instances using
getProviderandget,makeor theArrayAccessAPI. - Allow getting callbacks for static and instance methods consistently to unhook.
- Add phstan, phan and phpcs checks.
- Move benchmarks to Docker, automate them.
- Update documentation and examples.
Removed
- Removed the
tad_DI52_ServiceProviderInterfaceandtad_DI52_ContainerInterfaceinterfaces.