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

zend-expressive-hal 1.0.0

Compare
Choose a tag to compare
@weierophinney weierophinney released this 15 Mar 15:20
· 90 commits to master since this release

Added

  • Nothing.

Changed

  • #31 changes the constructor signature of Zend\Expressive\Hal\HalResponseFactory to read:

    public function __construct(
        callable $responseFactory,
        Renderer\JsonRenderer $jsonRenderer = null,
        Renderer\XmlRenderer $xmlRenderer = null
    )

    Previously, the $responseFactory argument was a Psr\Http\Message\ResponseInterface $responsePrototype; it is now a PHP callable capable of producing a new, empty instance of that type.

    Additionally, the signature previously included a callable $streamFactory; this has been removed.

  • #31 updates the HalResponseFactoryFactory to follow the changes made to the HalResponseFactory constructor. It now requires that a Psr\Http\Message\ResponseInterface service be registered, and that the service resolve to a callable capable of producing a ResponseInterface instance.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.