Releases: thephpleague/container
Releases · thephpleague/container
3.3.2
Added
- Experimental support for PHP 8.
Fixed
- Fix issue when preventing reflection from using default value for arguments.
3.3.1
3.3.1
Fixed
- Respect
$new
argument when getting tagged definitions.
3.3.0
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 ofPsr\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
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
3.2.1
Fixed
- Fixed issue where all service providers were registered regardless of whether they need to be.
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}Concrete
to 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
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
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
ReflectionContainer
converts class name in array callable to object.