Skip to content

Releases: thephpleague/container

3.2.0

Choose a tag to compare

@philipobenito philipobenito released this 13 Aug 10:43

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

Choose a tag to compare

@philipobenito philipobenito released this 12 Aug 20:15

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

Choose a tag to compare

@philipobenito philipobenito released this 25 Jul 15:19

3.0.1

Added

  • Allow definition aggregates to be built outside of container.

3.0.0

Choose a tag to compare

@philipobenito philipobenito released this 23 Jul 11:55

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

Choose a tag to compare

@philipobenito philipobenito released this 10 May 09:27

Fixed

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

2.4.0

Choose a tag to compare

@philipobenito philipobenito released this 06 Mar 15:27

Changed

  • Can now wrap shared objects as RawArgument.
  • Ability to override shared items.

Fixed

  • Booleans now recognised as accepted values.
  • Various docblock fixes.
  • Unused imports removed.
  • Unreachable arguments no longer passed.

2.3.0

Choose a tag to compare

@philipobenito philipobenito released this 06 Mar 15:41

Added

  • Now implementation of the PSR-11.

2.2.0

Choose a tag to compare

@philipobenito philipobenito released this 17 Mar 16:29

Changed

  • Service providers can now be added multiple times by giving them a signature.

2.1.0

Choose a tag to compare

@philipobenito philipobenito released this 15 Mar 08:20

Added

  • Allow resolving of RawArgument objects as first class dependencies.

Changed

  • Unnecessary recursion removed from Container::get.

2.0.3

Choose a tag to compare

@philipobenito philipobenito released this 07 Sep 10:17

Fixed

  • Bug where delegating container was not passed to delegate when needed.
  • Bug where Container::extend would not return a shared definition to extend.