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 usingTemplateRendererInterface::addDefaultParam()
.
Please review theREADME.me
for more details. -
#70 adds
Zend\Expressive\Helper\Template\TemplateVariableContainerMiddleware
,
which will register an emptyTemplateVariableContainer
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 discoveredZend\Expressive\Router\RouteResult
request attribute as the "route" variable of aTemplateVariableContainer
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.