zf-hal 1.5.0
Added
-
#158 adds support for PHP 7.1 and 7.2.
-
#167 adds a new event,
fromLink.pre
, triggered from theZF\Hal\Plugin\Hal::fromLink
method.
This event can be used in conjunction withZF\Rest\RestController::create()
to manipulate the generated
link for purpose of modifying it for theLink
HTTP response header.
Changed
-
#163 updates
ZF\Hal\Link\Link
to implement the PSR-13LinkInterface
, and modifies
some internals to make use of its idempotency. -
#165 modifies the
JsonSerializableEntity
to implement the native PHPJsonSerializable
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 theadd()
method. Its
internals largely replace functionality inZF\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.