Skip to content

Releases: thephpleague/container

3.3.2

26 Sep 10:44
Compare
Choose a tag to compare

Added

  • Experimental support for PHP 8.

Fixed

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

3.3.1

18 May 08:22
Compare
Choose a tag to compare

3.3.1

Fixed

  • Respect $new argument when getting tagged definitions.

3.3.0

30 Jun 10:53
Compare
Choose a tag to compare

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

28 Sep 13:29
Compare
Choose a tag to compare

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

21 Sep 14:24
Compare
Choose a tag to compare

3.2.1

Fixed

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

3.2.0

13 Aug 10:43
Compare
Choose a tag to compare

3.2.0

Added

  • Added ability to add definition as not shared when container is set to default to shared.
  • Added {set|get}Concrete to definitions to allow for better use of extend.

(Thanks to @jenssegers for these)

3.1.0 Sharing is caring

12 Aug 20:15
Compare
Choose a tag to compare

3.1.0

Added

  • Re-added the share proxy method that was mistakenly removed in previous major release.
  • Added ability to set Conatiner to "share" by default using defaultToShared method.
  • Added ability for ReflectionContainer to cache resolutions and pull from cache for following calls.

3.0.1

25 Jul 15:19
Compare
Choose a tag to compare

3.0.1

Added

  • Allow definition aggregates to be built outside of container.

3.0.0

23 Jul 11:55
Compare
Choose a tag to compare

3.0.0

Added

  • Service providers can now be pulled from the container if they are registered.
  • Definition logic now handled by aggregate for better separation.
  • Now able to add tags to a definition to return an array of items containing that tag.

Changed

  • Updated minimum PHP requirements to 7.0.
  • Now depend directly on PSR-11 interfaces, including providing PSR-11 exceptions.
  • Refactored inflector logic to accept type on construction and use generator to iterate.
  • Refactored service provider logic with better separation and performance.
  • Merged service provider signature logic in to one interface and abstract.
  • Heavily simplified definition logic providing more control to user.

2.4.1

10 May 09:27
Compare
Choose a tag to compare

Fixed

  • Ensures ReflectionContainer converts class name in array callable to object.