Skip to content

Releases: thephpleague/container

4.0.0

Choose a tag to compare

@philipobenito philipobenito released this 09 Jul 07:39

Added

  • New definition interface that extends psr/container
  • Literal and resolvable argument wrappers for better explicitness in definitions

Changed

  • PHP requirement now >=7.2
  • Updated psr/container to ^2.0.0
  • Container::shared convenience method is now explicit Container::addShared method
  • Removed third argument $shared from Container::add, use Container::addShared
  • ServiceProviderInterface now defines return types
  • Service providers now require implementation of a provides method rather than relying on a class property.

3.4.1

Choose a tag to compare

@philipobenito philipobenito released this 09 Jul 08:24

Added

  • Way to handle non-public controllers safely (@beryllium)
  • PHPUnit ^7.0 for PHP versions that support it (@beryllium)

3.4.0

Choose a tag to compare

@philipobenito philipobenito released this 09 Jul 07:22

Removed

  • Support for psr/container ^2.0.0 as the interface cannot be reconciled between versions

3.3.4

Choose a tag to compare

@philipobenito philipobenito released this 22 Feb 10:36

3.3.4

Fixed

  • Fixed an issue that caused a recursive register call. @pcoutinho
  • Fixed a return type declaration. @orbex

3.3.3

Choose a tag to compare

@philipobenito philipobenito released this 28 Sep 13:45

Fixed

  • Fixed bug relating to ReflectionContainer::call on arrow functions.

3.3.2

Choose a tag to compare

@philipobenito philipobenito released this 26 Sep 10:44

Added

  • Experimental support for PHP 8.

Fixed

  • Fix issue when preventing reflection from using default value for arguments.

3.3.1

Choose a tag to compare

@philipobenito philipobenito released this 18 May 08:22

3.3.1

Fixed

  • Respect $new argument when getting tagged definitions.

3.3.0

Choose a tag to compare

@philipobenito philipobenito released this 30 Jun 10:53

3.3.0

Added

  • Support for PHP 7.3
  • {set,get}LeagueContainer methods added to ContainerAwareTrait as a temporary measure until next major release when this can be properly addressed, less hinting of Psr\Container\ContainerInterface

Changed

  • Various internal code improvements

Fixed

  • Fix for setConcrete not re-resolving class on when overriding (@jleeothon)
  • Fix stack overflow error incase a service provider lies about providing a specific service (@azjezz)
  • Fix issue where providers may be aggregated multiple times (@bwg)
  • Various documentation fixes

3.2.2

Choose a tag to compare

@philipobenito philipobenito released this 28 Sep 13:29

3.2.2

Fixed

  • Fixed issue that prevented service providers from registering if a previous one in the aggregate was already registered.

3.2.1

Choose a tag to compare

@philipobenito philipobenito released this 21 Sep 14:24

3.2.1

Fixed

  • Fixed issue where all service providers were registered regardless of whether they need to be.