Skip to content

2.8.2

@weierophinney weierophinney tagged this 01 May 20:34
Based on https://github.com/zendframework/zend-form/releases/tag/release-2.8.2 (commit 9862b415f64cb9787ed8c2828da556cfda45ecbc in this repo)

Added
-----

- [zendframework/zend-form#60](https://github.com/zendframework/zend-form/pull/60) adds an alias from
  `Laminas\Form\FormElementManager` to `FormElementManager` in the `ConfigProvider`.
- [zendframework/zend-form#67](https://github.com/zendframework/zend-form/pull/67) adds polyfills for
  the `FormElementManager` to vary its definitions based on the major version of
  laminas-servicemanager in use. `FormElementManagerFactory` was updated to return
  the specific polyfill version, and an autoload rule was added to alias the
  class to the correct polyfill version. The polyfills were necessary to ensure
  that invokable classes are mapped to the new `ElementFactory` introduced in
  the 2.7 series, thus ensuring instantiation is performed correctly.

Deprecated
----------

- Nothing.

Removed
-------

- Nothing.

Fixed
-----

- [zendframework/zend-form#65](https://github.com/zendframework/zend-form/pull/65) fixes instantiation
  of `Laminas\Form\FormElementManager` to ensure that the default initializers,
  `injectFactory()` and `callElementInit()` are registered as the first and last
  initializers, respectively, during construction, restoring the pre-2.7
  behavior.
- [zendframework/zend-form#67](https://github.com/zendframework/zend-form/pull/67) fixes the behavior
  of `Factory::create()` to the pre-2.7.1 behavior of *not* passing creation
  options when retrieving an instance from the `FormElementManager`. This
  ensures that options are not passed to Element/Fieldset/Form instances
  until after they are fully initialized, ensuring that all dependencies are
  present.
Assets 2
Loading