Releases: thephpleague/container
Releases · thephpleague/container
Release list
3.2.0
3.2.0
Added
- Added ability to add definition as not shared when container is set to default to shared.
- Added
{set|get}Concreteto definitions to allow for better use ofextend.
(Thanks to @jenssegers for these)
3.1.0 Sharing is caring
3.1.0
Added
- Re-added the
shareproxy method that was mistakenly removed in previous major release. - Added ability to set Conatiner to "share" by default using
defaultToSharedmethod. - Added ability for
ReflectionContainerto cache resolutions and pull from cache for following calls.
3.0.1
3.0.1
Added
- Allow definition aggregates to be built outside of container.
3.0.0
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
Fixed
- Ensures
ReflectionContainerconverts class name in array callable to object.
2.4.0
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
Added
- Now implementation of the PSR-11.
2.2.0
Changed
- Service providers can now be added multiple times by giving them a signature.
2.1.0
Added
- Allow resolving of
RawArgumentobjects as first class dependencies.
Changed
- Unnecessary recursion removed from
Container::get.
2.0.3
Fixed
- Bug where delegating container was not passed to delegate when needed.
- Bug where
Container::extendwould not return a shared definition to extend.