Skip to content

Releases: devorto/dependency-injection

3.0.0

24 Mar 20:47
80b40e2
Compare
Choose a tag to compare
Upgrade package constraint

2.0.5: Added missing support for array packing

17 Aug 09:21
37e3620
Compare
Choose a tag to compare
Variadic variables (...$var aka array (un)packing) support was missing causing it to crash on some fancy code that used this in it's constructor.

2.0.4: Exception throw on parameter with default value

30 Jun 10:15
2c0bb32
Compare
Choose a tag to compare
If parameter is not optional but has a default value, use this instead of throwing exception.

2.0.3: Support PHP 8

11 Aug 08:00
f567035
Compare
Choose a tag to compare
Add support for PHP 8 in composer.json

2.0.2: Class or interface can be optional

24 Jul 13:06
67d4706
Compare
Choose a tag to compare
Class or interface can be optional which caused DI to crash when no implementation was found.
Also when providing null or an object as config, this also caused an exception.

2.0.1: Vendor packages type hints are not always present.

17 Jan 09:46
06440a8
Compare
Choose a tag to compare
Because some vendor don't use type hints in their vendor packages the code died on trying to get a class name from the variable. By checking first if parameter type isn't empty we can avoid this and the rest of the code can continue.

2.0.0: Moved KeyValueStorage to separate package.

10 Nov 11:00
85d5550
Compare
Choose a tag to compare
Because the KeyValueStorage object is used a lot by me for a lot of different things than only in combination with the dependency-injection I decided to move this to a separate package.
However this result in a namespace change, so update your paths after upgrading.

1.4.0: Added support voor class/interface overriding.

10 Nov 10:55
30be5d0
Compare
Choose a tag to compare
It's now possible to add a Class::class as value for a parameter in the configuration object, this will the override the default interface or class implementation for that class.

1.3.2: Interface implementations were not saved.

05 Nov 14:28
125277a
Compare
Choose a tag to compare
Because interface implementations were not stored in $loadedClasses, for every reference to the interface the implementing class was re-instantiated.

1.3.1: Bugfix: valid() failed when data was empty string, checking the key i…

11 Sep 15:59
1597979
Compare
Choose a tag to compare