Skip to content

Releases: jakewhiteley/hodl

1.7.0

28 Mar 18:42
5b0b7d3
Compare
Choose a tag to compare

Added new getWith method

1.3.3

28 Mar 19:38
Compare
Choose a tag to compare
make php 8.0 friendly

1.6.1

16 May 21:28
Compare
Choose a tag to compare

Added support for typehinting and resolving scalar types

1.6.0

03 Feb 22:48
58140b8
Compare
Choose a tag to compare

PHP 8.* support!

1.5.1

10 Aug 09:37
Compare
Choose a tag to compare

Hodl supports PHP 7.2., 7.3., 7.4.*.

PHP 8 to be supported in new release.

1.5.0

06 Apr 15:27
Compare
Choose a tag to compare

Add support for PSR-11 version 2.*

1.4.0

29 Oct 22:47
55ddd52
Compare
Choose a tag to compare

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

10 Nov 19:14
Compare
Choose a tag to compare
v1.3.2

Ensure aliases return the correct stored object

v1.3.1

04 Oct 20:06
Compare
Choose a tag to compare

Ensure instances can be bound to interfaces and aliased.

Aliases and Bindings

29 Sep 16:39
Compare
Choose a tag to compare

Hodl now has full support for aliases and binding interfaces to implementations.