Releases: zendframework/zend-expressive-platesrenderer
zend-expressive-platesrenderer 2.2.0
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 functionserverurl(); we now register theZend\Expressive\Helper\ServerUrlHelperinstance 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 functionurl(); we now register theZend\Expressive\Helper\UrlHelperinstance 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 functionroute(); we now register theZend\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
Added
- #36 adds the template function
route(), which will return a
Zend\Expressive\Router\RouteResultornull, based on the presence or
absence of aRouteResultin theZend\Expressive\Helper\UrlHelperinstance
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
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
ConfigProviderclass with default service wiring and configuration for the component. It also updatescomposer.jsonto addextra.zf.config-providerconfiguration to notify zend-component-installer of the shippedConfigProviderclass, allowing the plugin to inject theConfigProviderin 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
ExceptionInterfaceto extend from theExceptionInterfaceprovided 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
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
ConfigProviderclass with default service wiring and configuration for the component. It also updatescomposer.jsonto addextra.zf.config-providerconfiguration to notify zend-component-installer of the shippedConfigProviderclass, allowing the plugin to inject theConfigProviderin 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
ExceptionInterfaceto extend from theExceptionInterfaceprovided 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
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(), andescapeUrl(). These are registered by default with the Plates engine. If you wish to provide alternates, provide aZend\Expressive\PlatesRenderer\Extension\EscaperExtensionservice that provides the custom extension.
Changed
- #19 changes all factories to typehint against the PSR-11
Psr\Container\ContainerInterfaceinstead ofInterop\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
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #25 modifies the
PlatesEngineFactorysuch that it now skips injection of theUrlExtensionif zend-expressive-helpers is not installed. This change allows usage of the package outside the Expressive ecosystem.
Expressive Plates Renderer 1.3.1
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #17 fixes the default value of the
UrlExtension's$fragmentIdentifierto benullinstead of an empty string.
Expressive Plates Renderer 1.3.0
Added
- #18 adds support for zend-expressive-helpers 4.0.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Expressive Plates Renderer 1.2.1
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #15 updates the import statement for exceptions to point to the correct
Zend\Expressive\Router\Exceptionnamespace.
Expressive Plates Renderer 1.2.0
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
$routeParamswill be ignored.
Deprecated
- Nothing.
Removed
- #14 removes support for PHP 5.5.
Fixed
- Nothing.