This repository was archived by the owner on Jan 21, 2020. It is now read-only.
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.