Skip to content

Releases: laminas/laminas-servicemanager

4.3.0

05 Nov 09:35
4.3.0
Compare
Choose a tag to compare

Release Notes for 4.3.0

Feature release (minor)

Introduces PHP 8.4 Support

4.3.0

  • Total issues resolved: 0
  • Total pull requests resolved: 5
  • Total contributors: 4

Enhancement

Documentation,Enhancement

renovate

3.23.0

28 Oct 21:33
3.23.0
a864018
Compare
Choose a tag to compare

Release Notes for 3.23.0

3.23.0

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Enhancement

4.2.1

22 Oct 13:31
4.2.1
e18a454
Compare
Choose a tag to compare

Release Notes for 4.2.1

4.2.x bugfix release (patch)

4.2.1

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Documentation,Enhancement

4.2.0

04 Jul 09:41
4.2.0
a8489e3
Compare
Choose a tag to compare

Release Notes for 4.2.0

Feature release (minor)

4.2.0

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Enhancement

4.1.0

03 Apr 20:41
4.1.0
ae01570
Compare
Choose a tag to compare

Release Notes for 4.1.0

Feature release (minor)

4.1.0

  • Total issues resolved: 1
  • Total pull requests resolved: 3
  • Total contributors: 2

Documentation

Documentation,Enhancement

4.0.2

03 Apr 20:14
4.0.2
5eb0326
Compare
Choose a tag to compare

Release Notes for 4.0.2

4.0.x bugfix release (patch)

4.0.2

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Bug,Documentation

4.0.1

03 Apr 20:02
4.0.1
d6ebf7b
Compare
Choose a tag to compare

Release Notes for 4.0.1

4.0.x bugfix release (patch)

4.0.1

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Bug,Documentation

4.0.0

04 Mar 09:12
4.0.0
aa4b0f5
Compare
Choose a tag to compare

Release Notes for 4.0.0

Release Notes for 4.0.0

laminas-servicemanager 4.0.0 is here and finally enables projects to consume psr/container v2.0.0 after 2 years along with several type-additions and plugin manager decoupling.

The migration guide is not written yet but will be at some point (once we added support for SM v4 to other components) later.

Added

  • Several native type-additions including property-, argument- and return-types and a lot more psalm types
  • ServiceManager#get, PluginManagerInterface#get and ServiceLocatorInterface#build now explicitly implement mixed as return-type to synchronize types with ContainerInterface#get
  • Support for psr/container v1.1 and v2.0
  • Ahead of Time factory creation for services explicitly using ReflectionBasedAbstractFactory via laminas-cli

Removed

  • Dropped support for PHP <8.1
  • Removed deprecated interfaces such as
    • Laminas\ServiceManager\AbstractFactoryInterface
    • Laminas\ServiceManager\FactoryInterface
    • Laminas\ServiceManager\InitializerInterface
    • Laminas\ServiceManager\DelegatorFactoryInterface
  • CLI commands which were exposed via vendor/bin are removed in favor of the laminas-cli integration. All CLI commands of v3.x are accessible via vendor/bin/laminas servicemanager:<v3.x command name> once laminas/laminas-cli is required in the projects dependencies
  • Removed deprecated ConfigInterface and Config-class since these files did not provide any validation logic and were just used to proxy the configuration array structure
  • Removed AbstractPluginManager#validate and AbstractPluginManager::$instanceOf property as in v3.x, implementing plugin managers were able to implicitly validate mixed. In case an implementing plugin manager is providing a single $instanceOf such as laminas-cache, there is a new class AbstractSingleInstancePluginManager available which requires the $instanceOf property to be configured

Breaking Changes

  • AbstractPluginManager does not extend ServiceManager anymore and instead uses an own ServiceManager instance under the hood to manage plugin manager related services which can be configured the same way as in v3.x
  • Dedicated CLI commands which were previously linked to vendor/bin are now integrated via laminas-cli and can be called via vendor/bin/laminas once laminas/laminas-cli is part of the projects requirements. Read more about how to consume these commands here.
  • AbstractPluginManager does not provide the validate-Method anymore and requires migration action such as:
    • extend AbstractSingleInstancePluginManager in case the plugin manager only provides instances of a specific interface- or class-string (please be aware that the $instanceOf property now requires native string property type)
    • implement validate method and verify whatever type has to be returned and/or just allow mixed as v3.x did when omitting $instanceOf property
  • Removed deprecated ConfigInterface and Config-class since these files did not provide any validation logic and were just used to proxy the configuration array structure
  • neither ServiceManager nor AbstractPluginManager do validate the provided configuration at runtime anymore. due to the psalm-types provided to ServiceManager#__construct, ServiceManager#configure, AbstractPluginManager#__construct and AbstractPluginManager#configure, the configuration schema is strictly typed and thus, a miss-configuration can be mitigated on static-analysis level prior actual runtime
  • AbstractPluginManager#get does not accept options anymore, in case an instance with options needs to be created, AbstractPluginManager#build has to be used

4.0.0

  • Total issues resolved: 7
  • Total pull requests resolved: 14
  • Total contributors: 6

Enhancement

BC Break,Enhancement

RFC

BC Break

renovate

Bug

4.0.0-rc3

03 Mar 00:02
d69bfef
Compare
Choose a tag to compare
4.0.0-rc3 Pre-release
Pre-release

Added

  • Several native type-additions including property-, argument- and return-types and a lot more psalm types
  • ServiceManager#get, PluginManagerInterface#get and ServiceLocatorInterface#build now explicitly implement mixed as return-type to synchronize types with ContainerInterface#get
  • Support for psr/container v1.1 and v2.0
  • Ahead of Time factory creation for services explicitly using ReflectionBasedAbstractFactory via laminas-cli

Removed

  • Dropped support for PHP <8.1
  • Removed deprecated interfaces such as
    • Laminas\ServiceManager\AbstractFactoryInterface
    • Laminas\ServiceManager\FactoryInterface
    • Laminas\ServiceManager\InitializerInterface
    • Laminas\ServiceManager\DelegatorFactoryInterface
  • CLI commands which were exposed via vendor/bin are removed in favor of the laminas-cli integration. All CLI commands of v3.x are accessible via vendor/bin/laminas servicemanager:<v3.x command name> once laminas/laminas-cli is required in the projects dependencies
  • Removed deprecated ConfigInterface and Config-class since these files did not provide any validation logic and were just used to proxy the configuration array structure
  • Removed AbstractPluginManager#validate and AbstractPluginManager::$instanceOf property as in v3.x, implementing plugin managers were able to implicitly validate mixed. In case an implementing plugin manager is providing a single $instanceOf such as laminas-cache, there is a new class AbstractSingleInstancePluginManager available which requires the $instanceOf property to be configured

Breaking Changes

  • AbstractPluginManager does not extend ServiceManager anymore and instead uses an own ServiceManager instance under the hood to manage plugin manager related services which can be configured the same way as in v3.x
  • Dedicated CLI commands which were previously linked to vendor/bin are now integrated via laminas-cli and can be called via vendor/bin/laminas once laminas/laminas-cli is part of the projects requirements. Read more about how to consume these commands here.
  • AbstractPluginManager does not provide the validate-Method anymore and requires migration action such as:
    • extend AbstractSingleInstancePluginManager in case the plugin manager only provides instances of a specific interface- or class-string (please be aware that the $instanceOf property now requires native string property type)
    • implement validate method and verify whatever type has to be returned and/or just allow mixed as v3.x did when omitting $instanceOf property
  • Removed deprecated ConfigInterface and Config-class since these files did not provide any validation logic and were just used to proxy the configuration array structure
  • neither ServiceManager nor AbstractPluginManager do validate the provided configuration at runtime anymore. due to the psalm-types provided to ServiceManager#__construct, ServiceManager#configure, AbstractPluginManager#__construct and AbstractPluginManager#configure, the configuration schema is strictly typed and thus, a miss-configuration can be mitigated on static-analysis level prior actual runtime

What's Changed

  • Remove container-interop/container-interop polyfill by @boesing in #169
  • Remove deprecated factories by @boesing in #170
  • Remove deprecated ServiceManager#getServiceLocator method by @boesing in #181
  • Convert old CLI standalone commands to laminas-cli commands by @boesing in #176
  • Ahead of time factory creation command by @boesing in #180
  • Remove removed binaries from composer by @boesing in #187
  • Remove ServiceManager inheritance for AbstractPluginManager by @boesing in #179
  • Add support for psr/container v2 by @boesing in #188
  • Modernize codebase by @boesing in #191
  • Narrow return type of single instance plugin managers by @boesing in #194

Full Changelog: 3.21.0...4.0.0-rc3

3.22.1

24 Oct 11:20
3.22.1
de98d29
Compare
Choose a tag to compare

Release Notes for 3.22.1

3.22.x bugfix release (patch)

3.22.1

  • Total issues resolved: 1
  • Total pull requests resolved: 1
  • Total contributors: 1

Enhancement