All notable changes to this project will be documented in this file, in reverse chronological order by release.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #131 modifies the
repository to remove the concrete router and template renderer
implementations, along with any related factories; these are now in their own
packages. The classes removed include:
Zend\Expressive\Container\Template\PlatesRendererFactory
Zend\Expressive\Container\Template\TwigRendererFactory
Zend\Expressive\Container\Template\ZendViewRendererFactory
Zend\Expressive\Router\AuraRouter
Zend\Expressive\Router\FastRouteRouter
Zend\Expressive\Router\ZendRouter
Zend\Expressive\Template\PlatesRenderer
Zend\Expressive\Template\TwigRenderer
Zend\Expressive\Template\Twig\TwigExtension
Zend\Expressive\Template\ZendViewRenderer
Zend\Expressive\Template\ZendView\NamespacedPathStackResolver
Zend\Expressive\Template\ZendView\ServerUrlHelper
Zend\Expressive\Template\ZendView\UrlHelper
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #132 adds
Zend\Expressive\Router\ZendRouter
, replacingZend\Expressive\Router\Zf2Router
. - #139 adds:
Zend\Expressive\Template\TemplateRendererInterface
, replacingZend\Expressive\Template\TemplateInterface
.Zend\Expressive\Template\PlatesRenderer
, replacingZend\Expressive\Template\Plates
.Zend\Expressive\Template\TwigRenderer
, replacingZend\Expressive\Template\Twig
.Zend\Expressive\Template\ZendViewRenderer
, replacingZend\Expressive\Template\ZendView
.
- #143 adds
the method
addDefaultParam($templateName, $param, $value)
toTemplateRendererInterface
, allowing users to specify global and template-specific default parameters to use when rendering. To implement the feature, the patch also providesZend\Expressive\Template\DefaultParamsTrait
to simplify incorporating the feature in implementations. - #133 adds a
stipulation to
Zend\Expressive\Router\RouterInterface
thataddRoute()
should aggregateRoute
instances only, and delay injection untilmatch()
and/orgenerateUri()
are called; all shipped routers now follow this. This allows manipulatingRoute
instances before callingmatch()
orgenerateUri()
— for instance, to inject options or a name. - #133 re-instates
the
Route::setName()
method, as the changes to lazy-inject routes means that setting names and options after adding them to the application now works again.
- Nothing.
- #132 removes
Zend\Expressive\Router\Zf2Router
, renaming it toZend\Expressive\Router\ZendRouter
. - #139 removes:
Zend\Expressive\Template\TemplateInterface
, renaming it toZend\Expressive\Template\TemplateRendererInterface
.Zend\Expressive\Template\Plates
, renaming it toZend\Expressive\Template\PlatesRenderer
.Zend\Expressive\Template\Twig
, renaming it toZend\Expressive\Template\TwigRenderer
.Zend\Expressive\Template\ZendView
, renaming it toZend\Expressive\Template\ZendViewRenderer
.
- Nothing.
- #149 adds
verbiage to the
RouterInterface::generateUri()
method, specifying that the returned URI MUST NOT be escaped. TheAuraRouter
implementation has been updated to internally usegenerateRaw()
to follow this guideline, and retain parity with the other existing implementations.
- Nothing.
- Nothing.
- #140 updates the
AuraRouter to use the request method from the request object, and inject that
under the
REQUEST_METHOD
server parameter key before passing the server parameters for matching. This simplifies testing.
- #128 adds
container factories for each supported template implementation:
Zend\Expressive\Container\Template\PlatesFactory
Zend\Expressive\Container\Template\TwigFactory
Zend\Expressive\Container\Template\ZendViewFactory
- #128 adds
custom
url
andserverUrl
zend-view helper implementations, to allow integration with any router and with PSR-7 URI instances. The newly addedZendViewFactory
will inject these into theHelperPluginManager
by default.
- Nothing.
- Nothing.
- #128 fixes an
expectation in the
WhoopsErrorHandler
tests to ensure the tests can run successfully.
- Nothing.
- Nothing.
- Nothing.
- #125 fixes the
WhoopsErrorHandler
to ensure it pushes the "pretty page handler" into the Whoops runtime.
- #116 adds
Application::any()
to complement the various HTTP-specific routing methods; it has the same signature asget()
,post()
,patch()
, et al, but allows any HTTP method. - #120 renames the
router classes for easier discoverability, to better reflect their usage, and
for better naming consistency.
Aura
becomesAuraRouter
,FastRoute
becomesFastRouteRouter
andZf2
becomesZf2Router
.
- Nothing.
- #120 removes the
classes
Zend\Expressive\Router\Aura
,Zend\Expressive\Router\FastRoute
, andZend\Expressive\Router\Zf
, per the "Added" section above.
- Nothing.
- #112 adds a chapter to the documentation on using Aura.Di (v3beta) with zend-expressive.
- Nothing.
- Nothing.
- #118 fixes an
issue whereby route options specified via configuration were not being pushed
into generated
Route
instances before being passed to the underlying router.
Initial tagged release.
- Everything.
- Nothing.
- Nothing.
- Nothing.