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::fromLinkmethod.
This event can be used in conjunction withZF\Rest\RestController::create()to manipulate the generated
link for purpose of modifying it for theLinkHTTP response header.
Changed
-
#163 updates
ZF\Hal\Link\Linkto implement the PSR-13LinkInterface, and modifies
some internals to make use of its idempotency. -
#165 modifies the
JsonSerializableEntityto 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
halview helper, ensuring it receives an
event manager instance within its factory. Previously, listeners attached within delegator
factories could be overwritten.