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

zend-expressive-platesrenderer 1.4.0

Choose a tag to compare

@weierophinney weierophinney released this 02 Nov 13:53
· 86 commits to master since this release

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.