Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

zf-hal 1.5.0

Compare
Choose a tag to compare
@weierophinney weierophinney released this 03 May 19:23
· 14 commits to master since this release

Added

  • #158 adds support for PHP 7.1 and 7.2.

  • #167 adds a new event, fromLink.pre, triggered from the ZF\Hal\Plugin\Hal::fromLink method.
    This event can be used in conjunction with ZF\Rest\RestController::create() to manipulate the generated
    link for purpose of modifying it for the Link HTTP response header.

Changed

  • #163 updates ZF\Hal\Link\Link to implement the PSR-13 LinkInterface, and modifies
    some internals to make use of its idempotency.

  • #165 modifies the JsonSerializableEntity to implement the native PHP JsonSerializable
    interface instead of the polyfill from zend-stdlib, as all versions of PHP we support
    provide that interface in default installs now.

Deprecated

  • #163 both adds and deprecates the method ZF\Hal\Link\LinkCollection::idempotentAdd();
    in version 3, if released, that method will replace the add() method. Its
    internals largely replace functionality in ZF\Hal\Plugin\Hal::injectPropertyAsLink().

  • #163 deprecates the "url" key when creating a new link from an array, in
    favor of an "href" key.

Removed

  • #158 removes support for HHVM.

Fixed

  • #161 fixes initialization of the hal view helper, ensuring it receives an
    event manager instance within its factory. Previously, listeners attached within delegator
    factories could be overwritten.