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

zend-expressive-helpers 5.3.0

Latest
Compare
Choose a tag to compare
@weierophinney weierophinney released this 12 Mar 20:44
· 5 commits to master since this release

Added

  • #70 adds Zend\Expressive\Helper\Template\TemplateVariableContainer, which
    can be used to aggregate template variables within a pipeline, and as a
    stateless alternative to using TemplateRendererInterface::addDefaultParam().
    Please review the README.me for more details.

  • #70 adds Zend\Expressive\Helper\Template\TemplateVariableContainerMiddleware,
    which will register an empty TemplateVariableContainer under that class's name
    as a request attribute, if one is not already present.

  • #70 adds Zend\Expressive\Helper\Template\RouteTemplateVariableMiddleware,
    which will register the return value of any discovered Zend\Expressive\Router\RouteResult
    request attribute as the "route" variable of a TemplateVariableContainer
    request attribute, when present. This middleware can be used in place of the
    UrlHelperMiddleware, as long as you always provide the route name to the
    UrlHelper.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.