Skip to content

Releases: lucatume/di52

4.0.0

14 Dec 10:54
Compare
Choose a tag to compare

4.0.0

Changed

  • Bumped minimum supported version to PHP 7.1.
  • Fixed PHP 8.4 deprecation warnings.

3.3.7

26 Apr 14:46
Compare
Choose a tag to compare

3.3.7

Fixed

  • Correctly bind the container to the builders and resolvers when cloning the container.

3.3.6

02 Apr 08:40
Compare
Choose a tag to compare

3.3.6

Added

  • The afterBuildAll parameter to the bindDecorators and singletonDecorators method, fixes #61.

3.3.5

01 Sep 08:49
Compare
Choose a tag to compare

3.3.5

Changed

  • Added PHPStan generics to multiple classes. IDEs that support them will get autocompletion (.phpstorm.meta.php not required) if a fully-qualified class name is used, e.g. $instance = $container->get( Test::class ); (thanks @defunctl).

3.3.4

20 Jun 06:50
Compare
Choose a tag to compare

3.3.4

Added

  • Implement the Container::__clone method to clone the container accessory classes correctly upon cloning.

Changed

  • The Container::__construct method will bind itself to the Psr\Container\ContainerInterface interface as a singleton.
  • If the Container class is extended, it will bind itself to the extended class in the __construct and __clone methods.

3.3.3

28 Apr 07:39
Compare
Choose a tag to compare

3.3.3

Fixed

  • Return value of the App::callback method to be callable (thanks @estevao90).

3.3.2

07 Apr 12:38
Compare
Choose a tag to compare

3.3.2

Fixed

  • Set the correct return type for the Container::callback function (thanks @estevao90).

3.3.1

17 Mar 08:40
Compare
Choose a tag to compare

3.3.1

Fixed

  • Allow bound interfaces to properly resolve their concrete class when the concrete class has contextual bindings (thanks @defunctl). e.g. the following will now work properly:
$container = new \lucatume\DI52\Container();
$container->bind(SomeInterface::class, SomeClass::class);
$container->when(Someclass:class)
    ->needs('$num')
    ->give(20);

// This now works, properly resolving SomeClass::class.
$instance = $container->get(SomeInterface::class);

3.3.0

28 Feb 18:02
Compare
Choose a tag to compare

3.3.0

Breaking change

  • Removed the aliases.php file from the package autoloading. Take a look at the README.md file to see how to gracefully upgrade to version 3.3

3.2.1

28 Feb 17:34
Compare
Choose a tag to compare

3.2.1

Fixed

  • Correctly resolve unbound parameters to default value when available.