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

Releases: zendframework/zend-expressive-platesrenderer

zend-expressive-platesrenderer 2.2.0

08 Oct 17:08
2.2.0

Choose a tag to compare

Added

  • Nothing.

Changed

  • #37 changes some internal logic in how the UrlHelper and ServerUrlHelper are exposed as Plates functions, reducing the number of nested calls and improving performance.

Deprecated

  • #37 deprecates the method Zend\Expressive\Plates\Extension\UrlExtension::generateServerUrl(). Originally, the extension registered this method with the Plates engine as the function serverurl(); we now register the Zend\Expressive\Helper\ServerUrlHelper instance directly (as it is callable), making the method obsolete. It will be removed in version 3.0.0.

  • #37 deprecates the method Zend\Expressive\Plates\Extension\UrlExtension::generateUrl(). Originally, the extension registered this method with the Plates engine as the function url(); we now register the Zend\Expressive\Helper\UrlHelper instance directly (as it is callable), making the method obsolete. It will be removed in version 3.0.0.

  • #37 deprecates the method Zend\Expressive\Plates\Extension\UrlExtension::getRouteResult(). Originally, the extension registered this method with the Plates engine as the function route(); we now register the Zend\Expressive\Helper\UrlHelper::getRouteResult() method directly, making the method obsolete. It will be removed in version 3.0.0.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-expressive-platesrenderer 2.1.0

12 Mar 18:43

Choose a tag to compare

Added

  • #36 adds the template function route(), which will return a
    Zend\Expressive\Router\RouteResult or null, based on the presence or
    absence of a RouteResult in the Zend\Expressive\Helper\UrlHelper instance
    composed. This can be used to get the matched route name and/or parameters.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-expressive-platesrenderer 2.0.0

15 Mar 16:51

Choose a tag to compare

Added

  • #27 and #32 add support for the zend-expressive-template v2 series, zend-expressive-router v3 series, and zend-expressive-helpers v5 series.

  • #29 adds a ConfigProvider class with default service wiring and configuration for the component. It also updates composer.json to add extra.zf.config-provider configuration to notify zend-component-installer of the shipped ConfigProvider class, allowing the plugin to inject the ConfigProvider in your application configuration during initial installation.

Changed

  • #27 updates all classes to use scalar typehints and return typehints, including nullable types and void types, whenever possible, in order to improve reliability and predictability of operation.

  • #28 updates the package ExceptionInterface to extend from the ExceptionInterface provided in zend-expressive-template.

Deprecated

  • Nothing.

Removed

  • #27 drops support for zend-expressive-template v1.

  • #27 drops support for PHP versions prior to PHP 7.1.

Fixed

  • Nothing.

zend-expressive-platesrenderer 2.0.0alpha1

06 Feb 20:18

Choose a tag to compare

Added

  • #27 and #32 add support for the zend-expressive-template v2 series, zend-expressive-router v3 series, and zend-expressive-helpers v5 series.

  • #29 adds a ConfigProvider class with default service wiring and configuration for the component. It also updates composer.json to add extra.zf.config-provider configuration to notify zend-component-installer of the shipped ConfigProvider class, allowing the plugin to inject the ConfigProvider in your application configuration during initial installation.

Changed

  • #27 updates all classes to use scalar typehints and return typehints, including nullable types and void types, whenever possible, in order to improve reliability and predictability of operation.

  • #28 updates the package ExceptionInterface to extend from the ExceptionInterface provided in zend-expressive-template.

Deprecated

  • Nothing.

Removed

  • #27 drops support for zend-expressive-template v1.

  • #27 drops support for PHP versions prior to PHP 7.1.

Fixed

  • Nothing.

zend-expressive-platesrenderer 1.4.0

02 Nov 13:53

Choose a tag to compare

Added

  • #22 adds Zend\Expressive\PlatesRenderer\Extension\EscaperExtension, as well as a factory for the extension. This extension provides context-specific escaper helpers to the Plates engine, based on zend-escaper: escapeHtml(), escapeHtmlAttr(), escapeJs(), escapeCss(), and escapeUrl(). These are registered by default with the Plates engine. If you wish to provide alternates, provide a Zend\Expressive\PlatesRenderer\Extension\EscaperExtension service that provides the custom extension.

Changed

  • #19 changes all factories to typehint against the PSR-11 Psr\Container\ContainerInterface instead of Interop\Container\ContainerInterface. This change is backwards compatible for consumers, as container-interop interfaces extend from PSR-11 at this time. However, if you were extending any of the factories, you will need to update your code to use the new typehints. (We expect very few extensions, as typically delegator factories will be used to modify instances returned by factories, or custom factories will be written.)

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-expressive-platesrenderer 1.3.2

01 Nov 21:07

Choose a tag to compare

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #25 modifies the PlatesEngineFactory such that it now skips injection of the UrlExtension if zend-expressive-helpers is not installed. This change allows usage of the package outside the Expressive ecosystem.

Expressive Plates Renderer 1.3.1

14 Mar 14:14

Choose a tag to compare

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #17 fixes the default value of the UrlExtension's $fragmentIdentifier to be null instead of an empty string.

Expressive Plates Renderer 1.3.0

14 Mar 14:10

Choose a tag to compare

Added

  • #18 adds support for zend-expressive-helpers 4.0.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

Expressive Plates Renderer 1.2.1

02 Mar 18:25

Choose a tag to compare

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #15 updates the import statement for exceptions to point to the correct Zend\Expressive\Router\Exception namespace.

Expressive Plates Renderer 1.2.0

11 Jan 17:05

Choose a tag to compare

Added

  • #11 adds support for zend-expressive-helpers 3.0.0 (and, consequently, zend-expressive-router 2.0.0). Users may now pass additional arguments to the url() helper:

    echo $this->url(
        $routeName,         // (optional) string route name; omit to use current matched route
        $routeParams,       // (optional) array of route parameter substitutions
        $queryParams,       // (optional) array of query string parameters to include
        $fragmentIdentifer, // (optional) string fragment to include
        $options,           // (optional) array of options; `router` array will be
                            // passed to the router, `reuse_result_params` can be
                            // passed to disable reuse of matched route parameters.
    );

    If you are still using the zend-expressive-helpers 2.2 series and/or zend-expressive-router 1.0 series, all parameters provided after the $routeParams will be ignored.

Deprecated

  • Nothing.

Removed

  • #14 removes support for PHP 5.5.

Fixed

  • Nothing.