Releases: jakewhiteley/hodl
Releases · jakewhiteley/hodl
1.7.0
Added new getWith method
1.3.3
1.6.1
Added support for typehinting and resolving scalar types
1.6.0
PHP 8.* support!
1.5.1
Hodl supports PHP 7.2., 7.3., 7.4.*.
PHP 8 to be supported in new release.
1.5.0
Add support for PSR-11 version 2.*
1.4.0
You can no pass variables into definitions!
$hodl = new Container();
$hodl->add(Foo::class, function (Container $hodl, string $foo, string $someInt=10) {
return new Foo($foo, $someInt);
});
$object = $hodl->get(Foo::class, 'bar', 99);
This works for any service injected via a definition such as a factory or singleton.
1.3.2
v1.3.2 Ensure aliases return the correct stored object
v1.3.1
Ensure instances can be bound to interfaces and aliased.
Aliases and Bindings
Hodl now has full support for aliases and binding interfaces to implementations.