All notable changes to this project will be documented in this file, in reverse chronological order by release.
- Nothing.
- #67
changes configuration option for default template suffix used by NamespacedPathStackResolver
to
$config['templates']['extension']
to match other template renderers provided by framework. Default value isphtml
- #67
deprecates configuration option
$config['templates']['default_suffix']
- Nothing.
- Nothing.
- #64 adds configuration option to change default template suffix used by NamespacedPathStackResolver
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #60 adds support for PHP 7.3.
- Nothing.
- Nothing.
- Nothing.
- #62 provides a fix to allow setting the layout via the
layout()
view helper within a view script.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #58 fixes an issue whereby the default renderer parameters were not
- being merged into the view model passed to the renderer. It now correctly does so.
-
#46 and #52 add support for the zend-expressive-template v2 series, zend-expressive-router v3 series, and zend-expressive-helpers v5 series.
-
#47 adds a
ConfigProvider
class with default service wiring and configuration for the component. It also updatescomposer.json
to addextra.zf.config-provider
configuration to notify zend-component-installer of the shippedConfigProvider
class, allowing the plugin to inject theConfigProvider
in your application configuration during initial installation.
-
#37 adds support for PSR-11. All exception types that previously extended from container-interop exceptions now extend from PSR-11 exception interfaces, and factories typehint against the PSR-11
ContainerInterface
. -
#46 updates all classes to use scalar and return type hints, including nullable and void types. If you were extending classes from this package, you may need to update signatures of methods you override.
-
#45 updates the
ExceptionInterface
to extend from theExceptionInterface
provided in zend-expressive-template.
- Nothing.
-
#46 removes support for PHP versions prior to PHP 7.1.
-
#46 removes support for zend-expressive-template versions prior to v2.
-
#46 removes support for zend-expressive-router versions prior to v3.
-
#46 removes support for zend-expressive-helpers versions prior to v5.
- #53 adds the missing default layout.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #51
fixes teh behavior of
addDefaultParam()
such that it properly affects layouts as well as templates.
- #39
adds the ability for the
ZendViewRendererFactory
to use theZend\View\Renderer\PhpRenderer
service when present, defaulting to creating an unconfigured instance if none is available (previous behavior).
- #41 updates the renderer to also inject the layout with any default parameters (vs only the template requested).
- Nothing.
- Nothing.
- #43 ensures that if a view model provided to the renderer contains child view models, then it will properly merge variables pulled from the child model. Previously, an error would occur due to an attempt to merge either a null or an object where it expected an array.
- #36 adds support for zend-expressive-helpers 4.0.
- Nothing.
- Nothing.
- Nothing.
-
#23 adds the ability to disable layouts either globally or when rendering. Disable globally by setting the default
layout
parameter to booleanfalse
:$renderer->addDefaultParam(TemplateRendererInterface::TEMPLATE_ALL, 'layout', false);
Or do so when rendering, by passing the template variable
layout
with a booleanfalse
value:$renderer->render($templateName, [ 'layout' => false, // other template variables ]);
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #33
fixes the signature of the
UrlHelper
to make the default value of$fragmentIdentifer
anull
instead of''
; this fixes an issue whereby missing fragments led to exceptions thrown by zend-expressive-helpers.
-
#30 adds support for zend-expressive-router 2.0.
-
#30 adds support for zend-expressive-helpers 2.2 and 3.0.
-
#30 adds new arguments to the
url()
helper:echo $this->url( $routeName, // (optional) string route for which to generate URI; uses matched when absent $routeParams, // (optional) array route parameter substitutions; uses matched when absent $queryParams, // (optional) array query string arguments to include $fragment, // (optional) string URI fragment to include $options, // (optional) array of router options. The key `router` can // contain options to pass to the router; the key // `reuse_result_params` can be used to disable re-use of // matched routing parameters. );
If using zend-expressive-router versions prior to 2.0 and/or zend-expressive-helpers versions prior to 3.0, arguments after
$routeParams
will be ignored.
- #26 updated the zend-view dependency to 2.8.1+.
- Nothing.
-
#26 removes the dependencies for the zend-i18n and zend-filter packages, as they are no longer required by the minimum version of zend-view supported.
If you depended on features of these, you may need to re-add them to your application:
$ composer require zendframework/zend-filter zendframework/zend-i18n
-
This release removes support for PHP 5.5.
- Nothing.
- #22 adds support for the zend-eventmanager and zend-servicemanager v3 releases.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #19
updates the zend-expressive-helpers dependency to
^1.1 || ^2.0
, allowing it to work with either version.
First stable release.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #14
updates the zend-expressive-helpers dependency to
^1.1
, allowing removal of the zend-expressive development dependency.
- #11
adds a factory for providing the
HelperPluginManager
, and support in theZendViewRendererFactory
for injecting theHelperPluginManager
service (using its FQCN) instead of instantiating one directly. - #13
adds
zendframework/zend-expressive-helpers
as a dependency, in order to consume itsUrlHelper
andServerUrlHelper
implementations.
- Nothing.
- #13
removes the
UrlHelperFactory
. - #13
removes the
Zend\Expressive\ZendView\ApplicationUrlDelegatorFactory
. This functionality is obsolete due to the changes made to theUrlHelper
in this release.
- #13
updates the
UrlHelper
to be a proxy toZend\Expressive\Helper\UrlHelper
. - #13
updates the
ServerUrlHelper
to be a proxy toZend\Expressive\Helper\ServerUrlHelper
. - #13
modifies the logic for injecting the
url
andserverurl
helpers to pull theZend\Expressive\Helper\UrlHelper
andZend\Expressive\Helper\ServerUrlHelper
instances, respectively, to inject into the package's ownUrlHelper
andServerUrlHelper
instances.
- Nothing.
- Nothing.
- Nothing.
- #12
updates the
UrlHelper
to implement theZend\Expressive\RouteResultObserverInterface
from the zendframework/zend-expressive package, instead ofZend\Expressive\Router\RouteResultObserverInterface
from the zendframework/zend-expressive-router package (as it is now deprecated.
- #4 Allow rendering view models via render
- #9
updates
UrlHelper
to implementZend\Expressive\Template\RouteResultObserverInterface
, and theupdate()
method it defines. This allows it to observer the application for theRouteResult
and store it for later URI generation. To accomplish this, the following additional changes were made:Zend\Expressive\ZendView\UrlHelperFactory
was added, for creating theUrlHelper
instance. This should be registered with the application service container.Zend\Expressive\ZendView\ZendViewRendererFactory
was updated to look for theZend\Expressive\ZendView\UrlHelper
service in the application service container, and use it to seed theHelperManager
when available.Zend\Expressive\ZendView\ApplicationUrlDelegatorFactory
was created; when registered as a delegator factory with theZend\Expressive\Application
service, it will pull theUrlHelper
and attach it as a route result observer to theApplication
instance. Documentation was also provided for creating a Pimple extension for accomplishing this.
- Nothing.
- Nothing.
- #6 Merge route result params with those provided
- #10 updates the code to depend on zendframework/zend-expressive-template and zendframework/zend-expressive-router instead of zendframework/zend-expressive.
- Nothing.
- Nothing.
- Nothing.
- Update to zend-expressive RC1.
- Added branch alias of dev-master to 1.0-dev.
- Nothing.
- Nothing.
- Nothing.
- #1 adds a dependency on zendframework/zend-i18n, as it's required for use of the PhpRenderer.
Initial release.
- Nothing.
- Nothing.
- Nothing.
- Updated to zend-expressive
^0.5
Initial release.
- Nothing.
- Nothing.
- Nothing.
- Nothing.