All notable changes to this project will be documented in this file, in reverse chronological order by release.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #663 fixes parameter
types in docblock for
Zend\Expressive\MiddlewareFactory::pipeline()
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #646 fixes behavior in the
MiddlewareContainer
when retrieving services that implement bothRequestHandlerInterface
andMiddlewareInterface
. Previously, it incorrectly cast these values toRequestHandlerMiddleware
, which could cause middleware pipelines to fail if they attempted to delegate back to the application middleware pipeline. These values are now correctly returned verbatim.
- #637 adds support for zendframework/zend-diactoros 2.0.0. You may use either a 1.Y or 2.Y version of that library with Expressive applications.
- Nothing.
- Nothing.
- Nothing.
- #634 provides several minor performance and maintenance improvements.
- Nothing.
- #629 changes the constructor of
Zend\Expressive\Middleware\ErrorResponseGenerator
to accept an additional, optional argument,$layout
, which defaults to a new constant value,ErrorResponseGenerator::LAYOUT_DEFAULT
, orlayout::default
.Zend\Expressive\Container\ErrorResponseGeneratorFactory
now also looks for the configuration valuezend-expressive.error_handler.layout
, and will use that value to seed the constructor argument. This change makes theErrorResponseGenerator
mirror theNotFoundHandler
, allowing for a consistent layout between the two error pages.
- Nothing.
- Nothing.
- Nothing.
- #615 adds a cookbook entry for accessing common data in templates.
- Nothing.
- Nothing.
- Nothing.
- #627 fixes an issue in the Whoops response generator; previously, if an error or
exception occurred in an
ErrorHandler
listener or prior to handling the pipeline, Whoops would fail to intercept, resulting in an empty response with status 200. With the patch, it properly intercepts and displays the errors.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #612 updates the
ApplicationConfigInjectionDelegator
delegator factory logic to cast the$config
value to an array before passing it to itsinjectPipelineFromConfig()
andinjectRoutesFromConfig()
methods, ensuring it will work correctly with containers that store theconfig
service as anArrayObject
instead of anarray
.
- Nothing.
- #596 updates the
ApplicationConfigInjectionDelegator::injectRoutesFromConfig()
method to use the key name associated with a route specification if noname
member is provided when creating aRoute
instance. This can help enforce name uniqueness when defining routes via configuration.
- Nothing.
- Nothing.
- Nothing.
-
#543 adds support for the final PSR-15 interfaces, and explicitly depends on psr/http-server-middleware.
-
#538 adds scalar and return type hints to methods wherever possible.
-
#562 adds the class
Zend\Expressive\Response\ServerRequestErrorResponseGenerator
, and maps it to theZend\Expressive\Container\ServerRequestErrorResponseGeneratorFactory
. The class generates an error response when an exeption occurs producing a server request instance, and can be optionally templated. -
#543 adds a new class,
Zend\Expressive\MiddlewareContainer
. The class decorates a PSR-11ContainerInterface
, and adds the following behavior:- If a class is not in the container, but exists,
has()
will returntrue
. - If a class is not in the container, but exists,
get()
will attempt to instantiate it, caching the instance locally if it is valid. - Any instance pulled from the container or directly instantiated is tested.
If it is a PSR-15
RequestHandlerInterface
, it will decorate it in a zend-stratigilityRequestHandlerMiddleware
instance. If the instance is not a PSR-15MiddlewareInterface
, the container will raise aZend\Expressive\Exception\InvalidMiddlewareException
.
- If a class is not in the container, but exists,
-
#543 adds a new class,
Zend\Expressive\MiddlewareFactory
. The class composes aMiddlewareContainer
, and exposes the following methods:callable(callable $middleware) : CallableMiddlewareDecorator
handler(RequestHandlerInterface $handler) : RequestHandlerMiddleware
lazy(string $service) : LazyLoadingMiddleware
prepare($middleware) : MiddlewareInterface
: accepts a string service name, callable,RequestHandlerInterface
,MiddlewareInterface
, or array of such values, and returns aMiddlewareInterface
, raising an exception if it cannot determine what to do.pipeline(...$middleware) : MiddlewarePipe
: passes each argument toprepare()
, and the result toMiddlewarePipe::pipe()
, returning the pipeline when complete.
-
#543 adds the following factory classes, each within the
Zend\Expressive\Container
namespace:ApplicationPipelineFactory
: creates and returns aZend\Stratigility\MiddlewarePipe
to use as the application middleware pipeline.DispatchMiddlewareFactory
: creates and returns aZend\Expressive\Router\DispatchMiddleware
instance.EmitterFactory
: creates and returns aZend\HttpHandlerRunner\Emitter\EmitterStack
instance composing anSapiEmitter
from that same namespace as the only emitter on the stack. This is used as a dependency for theZend\HttpHandlerRunner\RequestHandlerRunner
service.MiddlewareContainerFactory
: creates and returns aZend\Expressive\MiddlewareContainer
instance decorating the PSR-11 container passed to the factory.MiddlewareFactoryFactory
: creates and returns aZend\Expressive\MiddlewareFactory
instance decorating aMiddlewareContainer
instance as pulled from the container.RequestHandlerRunnerFactory
: creates and returns aZend\HttpHandlerRunner\RequestHandlerRunner
instance, using the servicesZend\Expressive\Application
,Zend\HttpHandlerRunner\Emitter\EmitterInterface
,Zend\Expressive\ServerRequestFactory
, andZend\Expressive\ServerRequestErrorResponseGenerator
.ServerRequestFactoryFactory
: creates and returns acallable
factory for generating a PSR-7ServerRequestInterface
instance; this returned factory is a dependency for theZend\HttpHandlerRunner\RequestHandlerRunner
service.ServerRequestErrorResponseGeneratorFactory
: creates and returns acallable
that accepts a PHPThrowable
in order to generate a PSR-7ResponseInterface
instance; this returned factory is a dependency for theZend\HttpHandlerRunner\RequestHandlerRunner
service, which uses it to generate a response in the scenario that theServerRequestFactory
is unable to create a request instance.
-
#551 and #554 add the following constants under the
Zend\Expressive
namespace:DEFAULT_DELEGATE
can be used to refer to the formerDefaultDelegate
FQCN service, and maps to theZend\Expressive\Handler\NotFoundHandler
service.IMPLICIT_HEAD_MIDDLEWARE
can be used to refer to the formerZend\Expressive\Middleware\ImplicitHeadMiddleware
service, and maps to theZend\Expressive\Router\Middleware\ImplicitHeadMiddleware
service.IMPLICIT_OPTIONS_MIDDLEWARE
can be used to refer to the formerZend\Expressive\Middleware\ImplicitOptionsMiddleware
service, and maps to theZend\Expressive\Router\Middleware\ImplicitOptionsMiddleware
service.NOT_FOUND_MIDDLEWARE
can be used to refer to the formerZend\Expressive\Middleware\NotFoundMiddleware
service, and maps to theZend\Expressive\Handler\NotFoundHandler
service.
-
#579 updates the version constraint for zend-expressive-router to use 3.0.0rc4 or later.
-
#579 updates the version constraint for zend-stratigility to use 3.0.0rc1 or later.
-
#543 adds a dependency on zendframework/zend-httphandlerrunner 1.0.0
-
#542 modifies the
composer.json
to no longer suggest the pimple/pimple package, but rather the zendframework/zend-pimple-config package. -
#542 modifies the
composer.json
to no longer suggest the aura/di package, but rather the zendframework/zend-auradi-config package. -
#543 updates the
Zend\Expressive\ConfigProvider
to reflect new, removed, and updated services and their factories. -
#554 updates the
ConfigProvider
to add entries for the following constants as follows:IMPLICIT_HEAD_MIDDLEWARE
aliases to theZend\Expressive\Router\Middleware\ImplicitHeadMiddleware
service.IMPLICIT_OPTIONS_MIDDLEWARE
aliases to theZend\Expressive\Router\Middleware\ImplicitOptionsMiddleware
service.
-
#543 updates
Zend\Expressive\Handler\NotFoundHandler
to implement the PSR-15RequestHandlerInterface
. AsZend\Expressive\Middleware\NotFoundHandler
is removed,Zend\Expressive\Container\NotFoundHandlerFactory
has been re-purposedto create an instance ofZend\Expressive\Handler\NotFoundHandler
. -
#561 modifies the
Zend\Expressive\Handler\NotFoundHandler
to compose a response factory instead of a response prototype. -
#543 refactors
Zend\Expressive\Application
completely.The class no longer extends
Zend\Stratigility\MiddlewarePipe
, and instead implements the PSR-15MiddlewareInterface
andRequestHandlerInterface
.It now requires the following dependencies via constructor injection, in the following order:
Zend\Expressive\MiddlewareFactory
Zend\Stratigility\MiddlewarePipe
; this is the pipeline representing the application.Zend\Expressive\Router\RouteCollector
Zend\HttpHandlerRunner\RequestHandlerRunner
It removes all "getter" methods (as detailed in the "Removed" section of this release), but retains the following methods, with the changes described below. Please note: in most cases, these methods accept the same arguments as in the version 2 series, with the exception of callable double-pass middleware (these may be decorated manually using
Zend\Stratigility\doublePassMiddleware()
), and http-interop middleware (no longer supported; rewrite as PSR-15 middleware).-
pipe($middlewareOrPath, $middleware = null) : void
passes its arguments to the composedMiddlewareFactory
'sprepare()
method; if two arguments are provided, the second is passed to the factory, and the two together are passed toZend\Stratigility\path()
in order to decorate them to work as middleware. The prepared middleware is then piped to the composedMiddlewarePipe
instance.As a result of switching to use the
MiddlewareFactory
to prepare middleware, you may now pipeRequestHandlerInterface
instances as well. -
route(string $path, $middleware, array $methods = null, string $name) : Route
passes its$middleware
argument to theMiddlewareFactory::prepare()
method, and then all arguments to the composedRouteCollector
instance'sroute()
method.As a result of switching to use the
MiddlewareFactory
to prepare middleware, you may now route toRequestHandlerInterface
instances as well. -
Each of
get
,post
,patch
,put
,delete
, andany
now proxy toroute()
after marshaling the correct$methods
. -
getRoutes() : Route[]
proxies to the composedRouteCollector
instance. -
handle(ServerRequestInterface $request) : ResponseInterface
proxies to the composedMiddlewarePipe
instance'shandle()
method. -
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
proxies to the composedMiddlewarePipe
instance'sprocess()
method. -
run() : void
proxies to the composedRequestHandlerRunner
instance. Please note that the method no longer accepts any arguments.
-
#543 modifies the
Zend\Expressive\Container\ApplicationFactory
to reflect the changes to theZend\Expressive\Application
class as detailed above. It pulls the following services to inject via the constructor:Zend\Expressive\MiddlewareFactory
Zend\Stratigility\ApplicationPipeline
, which should resolve to aMiddlewarePipe
instance; use theZend\Expressive\Container\ApplicationPipelineFactory
.Zend\Expressive\Router\RouteCollector
Zend\HttpHandlerRunner\RequestHandlerRunner
-
#581 changes how the
ApplicationConfigInjectionDelegator::injectPipelineFromConfig()
method works. Previously, it would auto-inject routing and dispatch middleware if routes were configured, but nomiddleware_pipeline
was present. Considering that this method will always be called manually, this functionality was removed; the method now becomes a no-op if nomiddleware_pipeline
is present. -
#568 updates the
ErrorHandlerFactory
to pull thePsr\Http\Message\ResponseInterface
service, which returns a factory capable of returning a response instance, and passes it to theZend\Stratigility\Middleware\ErrorHandler
instance it creates, as that class changes in 3.0.0alpha4 such that it now expects a factory instead of an instance. -
#562 extracts most logic from
Zend\Expressive\Middleware\ErrorResponseGenerator
to a new trait,Zend\Expressive\Response\ErrorResponseGeneratorTrait
. A trait was used as the classes consuming it are from different namespaces, and thus different inheritance trees. The trait is used by both theErrorResponseGenerator
and the newServerRequestErrorResponseGenerator
. -
#551 removes
Zend\Expressive\Container\RouteMiddlewareFactory
, as zend-expressive-router now provides a factory for the middleware. -
#551 removes
Zend\Expressive\Container\DispatchMiddlewareFactory
, as zend-expressive-router now provides a factory for the middleware. -
#551 removes
Zend\Expressive\Middleware\ImplicitHeadMiddleware
, as it is now provided by the zend-expressive-router package. -
#551 removes
Zend\Expressive\Middleware\ImplicitOptionsMiddleware
, as it is now provided by the zend-expressive-router package.
- Nothing.
-
#529 removes support for PHP versions prior to PHP 7.1.
-
#529 removes support for http-interop/http-middleware (previous PSR-15 iteration).
-
#543 removes support for http-interop/http-server-middleware.
-
#580 removes zend-diactoros as a requirement; all usages of it within the package are currently conditional on it being installed, and can be replaced easily with any other PSR-7 implementation at this time.
-
#543 removes the class
Zend\Expressive\Delegate\NotFoundDelegate
; useZend\Expressive\Handler\NotFoundHandler
instead. -
#546 removes the service
Zend\Expressive\Delegate\DefaultDelegate
, as there is no longer a concept of a default handler invoked by the application. Instead, developers MUST pipe a request handler or middleware at the innermost layer of the pipeline guaranteed to return a response; we recommend usingZend\Expressive\Handler\NotFoundHandler
for this purpose. -
#543 removes the class
Zend\Expressive\Middleware\RouteMiddleware
. Use theRouteMiddleware
from zend-expressive-router instead. -
#543 removes the class
Zend\Expressive\Middleware\DispatchMiddleware
. Use theDispatchMiddleware
from zend-expressive-router instead; the factoryZend\Expressive\Container\DispatchMiddlewareFactory
will return an instance for you. -
#543 removes the class
Zend\Expressive\Emitter\EmitterStack
; use the classZend\HttpHandlerRunner\Emitter\EmitterStack
instead. -
#543 removes the following methods from
Zend\Expressive\Application
:pipeRoutingMiddleware()
: usepipe(\Zend\Expressive\Router\RouteMiddleware::class)
instead.pipeDispatchMiddleware()
: usepipe(\Zend\Expressive\Router\DispatchMiddleware::class)
instead.getContainer()
getDefaultDelegate()
: ensure you pipe middleware or a request handler capable of returning a response at the innermost layer;Zend\Expressive\Handler\NotFoundHandler
can be used for this.getEmitter()
: use theZend\HttpHandlerRunner\Emitter\EmitterInterface
service from the container.injectPipelineFromConfig()
: use the newApplicationConfigInjectionDelegator
and/or the static method of the same name it defines.injectRoutesFromConfig()
: use the newApplicationConfigInjectionDelegator
and/or the static method of the same name it defines.
-
#543 removes the class
Zend\Expressive\AppFactory
. -
The internal
Zend\Expressive\MarshalMiddlewareTrait
,Zend\Expressive\ApplicationConfigInjectionTrait
, andZend\Expressive\IsCallableMiddlewareTrait
have been removed.
- #574 updates the
classes
Zend\Expressive\Exception\InvalidMiddlewareException
andMissingDependencyException
to implement the PSR-11ContainerExceptionInterface
.
-
#581 adds the class
Zend\Expressive\ConfigProvider
, and exposes it to the zend-component-installer Composer plugin. We recommend updating yourconfig/config.php
to reference it, as well as theZend\Expressive\Router\ConfigProvider
shipped with zend-expressive-router versions 2.4 and up. -
#581 adds the class
Zend\Expressive\Container\ApplicationConfigInjectionDelegator
. The class can act as a delegator factory, and, when enabled, will inject routes and pipeline middleware defined in configuration.Additionally, the class exposes two static methods:
injectPipelineFromConfig(Application $app, array $config)
injectRoutesFromConfig(Application $app, array $config)
These may be called to modify an
Application
instance based on an array of configuration. See thd documentation for more details. -
#581 adds the class
Zend\Expressive\Handler\NotFoundHandler
; the class takes over the functionality previously provided inZend\Expressive\Delegate\NotFoundDelegate
.
-
#581 updates the minimum supported zend-stratigility version to 2.2.0.
-
#581 updates the minimum supported zend-expressive-router version to 2.4.0.
-
#581 deprecates the following classes and traits:
-
Zend\Expressive\AppFactory
: if you are using this, you will need to switch to direct usage ofZend\Expressive\Application
or aZend\Stratigility\MiddlewarePipe
instance. -
Zend\Expressive\ApplicationConfigInjectionTrait
: if you are using it, it is marked internal, and deprecated; it will be removed in version 3. -
Zend\Expressive\Container\NotFoundDelegateFactory
: theNotFoundDelegate
will be renamed toZend\Expressive\Handler\NotFoundHandler
in version 3, making this factory obsolete. -
Zend\Expressive\Delegate\NotFoundDelegate
: this class becomesZend\Expressive\Handler\NotFoundHandler
in v3, and the new class is added in version 2.2 as well. -
Zend\Expressive\Emitter\EmitterStack
: the emitter concept is extracted from zend-diactoros to a new component, zend-httphandlerrunner. This latter component is used in version 3, and defines theEmitterStack
class. Unless you are extending it or interacting with it directly, this change should not affect you; theZend\Diactoros\Response\EmitterInterface
service will be directed to the new class in that version. -
Zend\Expressive\IsCallableInteropMiddlewareTrait
: if you are using it, it is marked internal, and deprecated; it will be removed in version 3. -
Zend\Expressive\MarshalMiddlewareTrait
: if you are using it, it is marked internal, and deprecated; it will be removed in version 3. -
Zend\Expressive\Middleware\DispatchMiddleware
: this functionality has been moved to zend-expressive-router, under theZend\Expressive\Router\Middleware
namespace. -
Zend\Expressive\Middleware\ImplicitHeadMiddleware
: this functionality has been moved to zend-expressive-router, under theZend\Expressive\Router\Middleware
namespace. -
Zend\Expressive\Middleware\ImplicitOptionsMiddleware
: this functionality has been moved to zend-expressive-router, under theZend\Expressive\Router\Middleware
namespace. -
Zend\Expressive\Middleware\NotFoundHandler
: this will be removed in version 3, where you can instead pipeZend\Expressive\Handler\NotFoundHandler
directly instead. -
Zend\Expressive\Middleware\RouteMiddleware
: this functionality has been moved to zend-expressive-router, under theZend\Expressive\Router\Middleware
namespace.
-
-
#581 deprecates the following methods from
Zend\Expressive\Application
:pipeRoutingMiddleware()
pipeDispatchMiddleware()
getContainer()
: this method is removed in version 3; container access will only be via the bootstrap.getDefaultDelegate()
: the concept of a default delegate is removed in version 3.getEmitter()
: emitters move to a different collaborator in version 3.injectPipelineFromConfig()
anddinjectRoutesFromConfig()
are methods defined by theApplicationConfigInjectionTrait
, which will be removed in version 3. Use theApplicationConfigInjectionDelegator
instead.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
-
#583 provides a number of minor fixes and test changes to ensure the component works with the zend-expressive-router 2.4 version. In particular, configuration-driven routes will now work properly across all versions, without deprecation notices.
-
#582 fixes redirects in the documentation.
- #480 updates the
ImplicitHeadMiddleware
to add a request attribute indicating the request was originally generated for aHEAD
request before delegating the request; you can now pull the attributeZend\Expressive\Middleware\ImplicitHeadMiddleware::FORWARDED_HTTP_METHOD_ATTRIBUTE
in your own middleware in order to vary behavior in these scenarios.
-
#505 modifies
Zend\Expressive\Application
to remove implementation of__call()
in favor of the following new methods:get($path, $middleware, $name = null)
post($path, $middleware, $name = null)
put($path, $middleware, $name = null)
patch($path, $middleware, $name = null)
delete($path, $middleware, $name = null)
This change is an internal implementation detail only, and will not affect existing implementations or extensions.
-
#511 modifies the
NotFoundDelegate
to accept an optional$layout
argument to its constructor; the value defaults tolayout::default
if not provided. That value will be passed for thelayout
template variable when the delegate renders a template, allowing zend-view users (and potentially other template systems) to customize the layout template used for reporting errors.You may provide the template via the configuration
zend-expressive.error_handler.layout
.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #534 provides a
fix for how it detects
callable
middleware. Previously, it relied on PHP'sis_callable()
, but that function can result in false positives when provided a 2-element array where the first element is an object, as the function does not verify that the second argument is a valid method of the first. We now implement additional verifications to prevent such false positives.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #521 adds an
explicit requirement on http-interop/http-middleware
^0.4.1
to the package. This is necessary as newer builds of zend-stratigility instead depend on the metapackage webimpress/http-middleware-compatibility instead of the http-interop/http-middleware package — but middleware shipped in Expressive requires it. This addition fixes problems due to missing http-middleware interfaces.
- #508 adds
documentation covering
Zend\Expressive\Helper\ContentLengthMiddleware
, introduced in zend-expressive-helpers 4.1.0.
- Nothing.
- Nothing.
- #479 fixes the
WhoopsErrorResponseGenerator::$whoops
dockblock Type to support Whoops 1 and 2. - #482 fixes the
Application::$defaultDelegate
dockblock Type. - #489 fixes an
edge case in the
WhoopsErrorHandler
whereby it would emit an error if$_SERVER['SCRIPT_NAME']
did not exist. It now checks for that value before attempting to use it.
- Nothing.
- #468 updates
references to
DefaultDelegate::class
to instead use the string'Zend\Expressive\Delegate\DefaultDelegate'
; using the string makes it clear that the service name does not resolve to an actual class.
- Nothing.
- Nothing.
- #476 fixes the
WhoopsErrorResponseGenerator
to ensure it returns a proper error status code, instead of using a200 OK
status.
- Nothing.
- Nothing.
- Nothing.
- #467 fixes an
issue when passing invokable, duck-typed, interop middleware to the
application without registering it with the container. Prior to the patch, it
was incorrectly being decorated by
Zend\Stratigility\Middleware\CallableMiddlewareWrapper
instead ofZend\Stratigility\Middleware\CallableInteropMiddlewareWrapper
.
- Nothing.
- Nothing.
- Nothing.
- #464 fixes the
WhoopsErrorResponseGenerator
to provide a correctContent-Type
header to the response when a JSON request occurs.
-
#450 adds support for PSR-11; Expressive is now a PSR-11 consumer.
-
#428 updates the zend-stratigility dependency to require
^2.0
; this allows usage of both the new middleare-based error handling system introduced in zend-stratigility 1.3, as well as usage of http-interop/http-middleware implementations with Expressive. The following middleware is now supported:- Implementations of
Interop\Http\ServerMiddleware\MiddlewareInterface
. - Callable middleware that implements the same signature as
Interop\Http\ServerMiddleware\MiddlewareInterface
. - Callable middleware using the legacy double-pass signature
(
function ($request, $response, callable $next)
); these are now decorated inZend\Stratigility\Middleware\CallableMiddlewareWrapper
instances. - Service names resolving to any of the above.
- Arrays of any of the above; these will be cast to
Zend\Stratigility\MiddlewarePipe
instances, piping each middleware.
- Implementations of
-
#396 adds
Zend\Expressive\Middleware\NotFoundHandler
, which provides a way to return a templated 404 response to users. This middleware should be used as innermost middleware. You may use the newZend\Expressive\Container\NotFoundHandlerFactory
to generate the instance via your DI container. -
#396 adds
Zend\Expressive\Container\ErrorHandlerFactory
, for generating aZend\Stratigility\Middleware\ErrorHandler
to use with your application. If aZend\Expressive\Middleware\ErrorResponseGenerator
service is present in the container, it will be used to seed theErrorHandler
with a response generator. If you use this facility, you should enable thezend-expressive.raise_throwables
configuration flag. -
#396 adds
Zend\Expressive\Middleware\ErrorResponseGenerator
andZend\Expressive\Middleware\WhoopsErrorResponseGenerator
, which may be used withZend\Stratigility\Middleware\ErrorHandler
to generate error responses. The first will generate templated error responses if a template renderer is composed, and the latter will generate Whoops output. You may use the newZend\Expressive\Container\ErrorResponseGeneratorFactory
andZend\Expressive\Container\WhoopsErrorResponseGeneratorFactory
, respectively, to create these instances; if you do, assign these to the service nameZend\Expressive\Middleware\ErrorResponseGenerator
to have them automatically registered with theErrorHandler
. -
#396 adds
Zend\Expressive\ApplicationConfigInjectionTrait
, which exposes two methods,injectRoutesFromConfig()
andinjectPipelineFromConfig()
; this trait is now composed into theApplication
class. These methods allow you to configure anApplication
instance from configuration if desired, and are now used by theApplicationFactory
to configure theApplication
instance. -
#396 adds a vendor binary,
vendor/bin/expressive-tooling
, which will install (or uninstall) the zend-expressive-tooling; this package provides migration tools for updating your application to use programmatic pipelines and the new error handling strategy, as well as tools for identifying usage of the legacy Stratigility request and response decorators and error middleware. -
#413 adds the middleware
Zend\Expressive\Middleware\ImplicitHeadMiddleware
; this middleware can be used to provide implicit support forHEAD
requests when the matched route does not explicitly support the method. -
#413 adds the middleware
Zend\Expressive\Middleware\ImplicitOptionsMiddleware
; this middleware can be used to provide implicit support forOPTIONS
requests when the matched route does not explicitly support the method; the returned 200 response will also include anAllow
header listing allowed HTTP methods for the URI. -
#426 adds the method
Application::getRoutes()
, which will return the list ofZend\Expressive\Router\Route
instances currently registered with the application. -
#428 adds the class
Zend\Expressive\Delegate\NotFoundDelegate
, anInterop\Http\ServerMiddleware\DelegateInterface
implementation. The class will return a 404 response; if aTemplateRendererInterface
is available and injected into the delegate, it will provide templated contents for the 404 response as well. We also provideZend\Expressive\Container\NotFoundDelegateFactory
for providing an instance. -
#428 adds the method
Zend\Expressive\Application::getDefaultDelegate()
. This method will return the defaultInterop\Http\ServerMiddleware\DelegateInterface
injected during instantiation, or, if none was injected, lazy load an instance ofZend\Expressive\Delegate\NotFoundDelegate
. -
#428 adds the constants
DISPATCH_MIDDLEWARE
andROUTING_MIDDLEWARE
toZend\Expressive\Application
; they have identical values to the constants previously defined inZend\Expressive\Container\ApplicationFactory
. -
#428 adds
Zend\Expressive\Middleware\LazyLoadingMiddleware
; this essentially extracts the logic previously used withinZend\Expressive\Application
to provide container-based middleware to allow lazy-loading only when dispatched.
-
#440 changes the
Zend\Expressive\Application::__call($method, array $args)
signature; in previous versions,$args
did not have a typehint. If you are extending the class and overriding this method, you will need to update your signature accordingly. -
#428 updates
Zend\Expressive\Container\ApplicationFactory
to ignore thezend-expressive.raise_throwables
configuration setting; Stratigility 2.X no longer catches exceptions in its middleware dispatcher, making the setting irrelevant. -
#422 updates the zend-expressive-router minimum supported version to 2.0.0.
-
#428 modifies the
Zend\Expressive\Container\ApplicationFactory
constantsDISPATCH_MIDDLEWARE
andROUTING_MIDDLEWARE
to define themselves based on the constants of the same name now defined inZend\Expressive\Application
. -
#428 modifies the constructor of
Zend\Expressive\Application
; the third argument was previously a nullable callable$finalHandler
; it is now a nullableInterop\Http\ServerMiddleware\DelegateInterface
with the name$defaultDelegate
. -
#450 modifies the signatures in several classes to typehint against PSR-11 instead of container-interop; these include:
Zend\Expressive\AppFactory::create()
Zend\Expressive\Application::__construct()
Zend\Expressive\Container\ApplicationFactory::__invoke()
Zend\Expressive\Container\ErrorHandlerFactory::__invoke()
Zend\Expressive\Container\ErrorResponseGeneratorFactory::__invoke()
Zend\Expressive\Container\NotFoundDelegateFactory::__invoke()
Zend\Expressive\Container\NotFoundHandlerFactory::__invoke()
Zend\Expressive\Container\WhoopsErrorResponseGeneratorFactory::__invoke()
Zend\Expressive\Container\WhoopsFactory::__invoke()
Zend\Expressive\Container\WhoopsPageHandlerFactory::__invoke()
-
#450 changes the interface inheritance of
Zend\Expressive\Container\Exception\InvalidServiceException
to extendPsr\Container\ContainerExceptionInterface
instead ofInterop\Container\Exception\ContainerException
.
- Nothing.
-
#428 removes the following routing/dispatch methods from
Zend\Expressive\Application
:routeMiddleware()
; this is now encapsulated inZend\Expressive\Middleware\RouteMiddleware
.dispatchMiddleware()
; this is now encapsulated inZend\Expressive\Middleware\DispatchMiddleware
.
-
#428 removes the various "final handler" implementations and related factories. Users should now use the "default delegates" as detailed in sections previous. Classes and methods removed include:
Zend\Expressive\Application::getFinalHandler()
Zend\Expressive\TemplatedErrorHandler
Zend\Expressive\WhoopsErrorHandler
Zend\Expressive\Container\TemplatedErrorHandlerFactory
Zend\Expressive\Container\WhoopsErrorHandlerFactory
-
#428 removes the
Zend\Expressive\ErrorMiddlewarePipe
class, as zend-stratigility 2.X no longer definesZend\Stratigility\ErrorMiddlewareInterface
or has a concept of variant-signature error middleware. Use standard middleware to provide error handling now. -
#428 removes the exception types
Zend\Expressive\Container\Exception\InvalidArgumentException
(useZend\Expressive\Exception\InvalidArgumentException
instead) andZend\Expressive\Container\Exception\NotFoundException
(which was never used internally).
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #447 fixes an
error in the
ApplicationFactory
that occurs when theconfig
service is anArrayObject
. Prior to the fix,ArrayObject
configurations would cause a fatal error when injecting the pipeline and/or routes.
-
#309 adds the ability to provide options with which to instantiate the
FinalHandler
instance, via the configuration:[ 'final_handler' => [ 'options' => [ /* array of options */ ], ],
-
#373 adds interception of exceptions from the
ServerRequestFactory
for invalid request information in order to return400
responses. -
#432 adds two new configuration flags for use with
Zend\Expressive\Container\ApplicationFactory
:zend-expressive.programmatic_pipelines
: when enabled, the factory will ignore themiddleware_pipeline
androutes
configuration, allowing you to wire these programmatically instead. We recommend creating these in the filesconfig/pipeline.php
andconfig/routes.php
, respectively, and modifying yourpublic/index.php
torequire
these files in statements immediately preceding the call to$app->run()
.zend-expressive.raise_throwables
: when enabled, this will be used to notify zend-stratigility's internal dispatcher to no longer catch exceptions/throwables, and instead allow them to bubble out. This allows you to write custom middleware for handling errors.
-
#429 adds
Zend\Expressive\Application::getDefaultDelegate()
as a forwards-compatibility measure for the upcoming version 2.0.0. Currently, it proxies togetFinalHandler()
. -
#435 adds support for the 2.X versions of zend-expressive-router and the various router implementations. This change also allows usage of zend-expressive-helpers 3.X.
-
#429 updates the minimum supported zend-stratigility version to 1.3.3.
-
#396 updates the
Zend\Expressive\Container\ApplicationFactory
to vary creation of theApplication
instance based on two new configuration variables:-
zend-expressive.programmatic_pipeline
will cause the factory to skip injection of the middleware pipeline and routes from configuration. It is then up to the developer to do so, or use theApplication
API to pipe middleware and/or add routed middleware. -
zend-expressive.raise_throwables
will cause the factory to call the newraiseThrowables()
method exposed byApplication
(and inherited fromZend\Stratigility\MiddlewarePipe
). Doing so will cause the application to raise anyThrowable
orException
instances caught, instead of catching them and dispatching them to (legacy) Stratigility error middleware.
-
- #429 deprecates
the following methods and classes:
Zend\Expressive\Application::pipeErrorHandler()
; use theraise_throwables
flag and standard middleware to handle errors instead.Zend\Expressive\Application::routeMiddleware()
; this is extracted to a dedicated middleware class for 2.0.Zend\Expressive\Application::dispatchMiddleware()
; this is extracted to a dedicated middleware class for 2.0.Zend\Expressive\Application::getFinalHandler()
(this patch providesgetDefaultDelegate()
as a forwards-compatibility measure)Zend\Expressive\Container\Exception\InvalidArgumentException
; this will be removed in 2.0.0, and places where it was used will instead throwZend\Expressive\Exception\InvalidArgumentException
.Zend\Expressive\Container\Exception\NotFoundException
; this exception is never thrown at this point.Zend\Expressive\Container\TemplatedErrorHandlerFactory
Zend\Expressive\Container\WhoopsErrorHandlerFactory
Zend\Expressive\ErrorMiddlewarePipe
; Stratigility 1.3 deprecates itsZend\Stratigility\ErrorMiddlewareInterface
, and removes it in version 2.0. use theraise_throwables
flag and standard middleware to handle errors instead.Zend\Expressive\TemplatedErrorHandler
; the "final handler" concept is retired in Expressive 2.0, and replaced with default delegates (classes implementingInterop\Http\ServerMiddleware\DelegateInterface
that will be executed when the internal pipeline is exhausted, in order to guarantee a response). If you are using custom final handlers, you will need to rewrite them when adopting Expressive 2.0.Zend\Expressive\WhoopsErrorHandler
- #406 removes the
RouteResultSubjectInterface
implementation fromZend\Expressive\Application
, per the deprecation prior to the 1.0 stable release.
- #442 fixes how
the
WhoopsFactory
disables JSON output for whoops; previously, providing booleanfalse
values for either of the configuration flagsjson_exceptions.show_trace
orjson_exceptions.ajax_only
would result in enabling the settings; these flags are now correctly evaluated by theWhoopsFactory
.
- Nothing.
- Nothing.
- Nothing.
- #420 fixes the
routeMiddleware()
's handling of 405 errors such that it now no longer emits deprecation notices when running under the Stratigility 1.3 series.
- Nothing.
- Nothing.
- Nothing.
- #403 updates the
AppFactory::create()
logic to raise exceptions in either of the following scenarios:- no container is specified, and the class
Zend\ServiceManager\ServiceManager
is not available. - no router is specified, and the class
Zend\Expressive\Router\FastRouteRouter
is not available.
- no container is specified, and the class
- #405 fixes how
the
TemplatedErrorHandler
injects templated content into the response. Previously, it wouldwrite()
directly to the existing response body, which could lead to issues if previous middleware had written to the response (as the templated contents would append the previous contents). With this release, it now creates a newZend\Diactoros\Stream
, writes to that, and returns a new response with that new stream, guaranteeing it only contains the new contents. - #404 fixes the
swallowDeprecationNotices()
handler such that it will not swallow a global handler once application execution completes.
- Nothing.
- Nothing.
- Nothing.
- #402 fixes how
Application::__invoke()
registers the error handler designed to swallow deprecation notices, as introduced in 1.0.3. It now checks to see if another error handler was previously registered, and, if so, creates a composite handler that will delegate to the previous for all other errors.
- Nothing.
- #395 updates
Application::__invoke()
to add an error handler to swallow deprecation notices due to triggering error middleware when using Stratigility 1.3+. Since error middleware is triggered whenever theraiseThrowables
flag is not enabled and an error or empty queue situation is encountered, handling it this way prevents any such errors from bubbling out of the application.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #393 updates
Application::run()
to inject the request with anoriginalResponse
attribute using the provided response as the value.
- Nothing.
- Nothing.
- #393 fixes how
each of the
TemplatedErrorHandler
andWhoopsErrorHandler
access the "original" request, URI, and/or response. Previously, these used Stratigility-specific methods; they now use request attributes, eliminating deprecation notices emitted in Stratigility 1.3+ versions.
- #306 adds a cookbook recipe covering flash messages.
- #384 adds support for Whoops version 2 releases, providing PHP 7 support for Whoops.
- Nothing.
- Nothing.
- #391 fixes the
Application::run()
implementation to prevent emission of deprecation notices when used with Stratigility 1.3.
Initial stable release.
- #279 updates the documentation to provide automation for pushing to GitHub pages. As part of that work, documentation was re-organized, and a landing page provided. Documentation can now be found at: https://zendframework.github.io/zend-expressive/
- #299 adds component-specific CSS to the documentation.
- #295 adds support for handling PHP 7 engine exceptions in the templated and whoops final handlers.
- Nothing.
- Nothing.
- #280 fixes
references to the
PlatesRenderer
in the error handling documentation. - #284 fixes the reference to maximebf/php-debugbar in the debug bar documentation.
- #285 updates the section on mtymek/blast-base-url in the "Using a Base Path" cookbook recipe to conform to its latest release.
- #286 fixes the documentation of the Composer "serve" command to correct a typo.
- #291 fixes the documentation links to the RC5 -> v1 migration guide in both the CHANGELOG as well as the error messages emitted, ensuring users can locate the correct documentation in order to upgrade.
- #287 updates the
"standalone" quick start to reference calling
$app->pipeRoutingMiddleware()
and$app->pipeDispatchMiddleware()
per the changes in RC6. - #293 adds
a
require 'vendor/autoload.php';
line to the bootstrap script referenced in the zend-servicemanager examples. - #294 updates the namespace referenced in the modulear-layout documentation to provide a better separation between the module/package/whatever, and the application consuming it.
- #298 fixes a typo in a URI generation example.
Seventh release candidate.
- #277 adds a new
class,
Zend\Expressive\ErrorMiddlewarePipe
. It composes aZend\Stratigility\MiddlewarePipe
, but implements the error middleware signature via its own__invoke()
method.
- Nothing.
- Nothing.
- #277 updates the
MarshalMiddlewareTrait
to create and return anErrorMiddlewarePipe
when the$forError
argument provided indicates error middleware is expected. This fix allows defining arrays of error middleware via configuration.
Sixth release candidate.
This release contains backwards compatibility breaks with previous release
candidates. All previous functionality should continue to work, but will
emit E_USER_DEPRECATED
notices prompting you to update your application.
In particular:
- The routing middleware has been split into two separate middleware implementations, one for routing, another for dispatching. This eliminates the need for the route result observer system, as middleware can now be placed between routing and dispatching — an approach that provides for greater flexibility with regards to providing route-based functionality.
- As a result of the above,
Zend\Expressive\Application
no longer implementsZend\Expressive\Router\RouteResultSubjectInterface
, though it retains the methods associated (each emits a deprecation notice). - Configuration for
Zend\Expressive\Container\ApplicationFactory
was modified to implement themiddleware_pipeline
as a single queue, instead of segregating it betweenpre_routing
andpost_routing
. Each item in the queue follows the original middleware specification from those keys, with one addition: apriority
key can be used to allow you to granularly shape the execution order of the middleware pipeline.
A migration guide was written to help developers migrate to RC6 from earlier versions.
- #255 adds
documentation for the base path functionality provided by the
UrlHelper
class of zend-expressive-helpers. - #227 adds a section on creating localized routes, and setting the application locale based on the matched route.
- #244 adds
a recipe on using middleware to detect localized URIs (vs using a routing
parameter), setting the application locale based on the match detected,
and setting the
UrlHelper
base path with the same match. - #260 adds a recipe on how to add debug toolbars to your Expressive applications.
- #261 adds a flow/architectural diagram to the "features" chapter.
- #262 adds a recipe demonstrating creating classes that can intercept multiple routes.
- #270 adds
new methods to
Zend\Expressive\Application
:dispatchMiddleware()
is new middleware for dispatching the middleware matched by routing (this functionality was split fromrouteMiddleware()
).routeResultObserverMiddleware()
is new middleware for notifying route result observers, and exists only to aid migration functionality; it is marked deprecated!pipeDispatchMiddleware()
will pipe the dispatch middleware to theApplication
instance.pipeRouteResultObserverMiddleware()
will pipe the route result observer middleware to theApplication
instance; likerouteResultObserverMiddleware()
, the method only exists for aiding migration, and is marked deprecated.
- #270 adds
Zend\Expressive\MarshalMiddlewareTrait
, which is composed byZend\Expressive\Application
; it provides methods for marshaling middleware based on service names or arrays of services.
- #270 deprecates
the following methods in
Zend\Expressive\Application
, all of which will be removed in version 1.1:attachRouteResultObserver()
detachRouteResultObserver()
notifyRouteResultObservers()
pipeRouteResultObserverMiddleware()
routeResultObserverMiddleware()
- #270 removes the
Zend\Expressive\Router\RouteResultSubjectInterface
implementation fromZend\Expressive\Application
. - #270 eliminates
the
pre_routing
/post_routing
terminology from themiddleware_pipeline
, in favor of individually specifiedpriority
values in middleware specifications.
- #263 typo fixes in documentation
Fifth release candidate.
- #233 adds a documentation page detailing projects using and tutorials written on Expressive.
- #238 adds a cookbook recipe detailing how to handle serving an Expressive application from a subdirectory of your web root.
- #239 adds a cookbook recipe detailing how to create modular Expressive applications.
- #243 adds a
chapter to the helpers section detailing the new
BodyParseMiddleware
.
- Nothing.
- Nothing.
- #234 fixes the
inheritance tree for
Zend\Expressive\Exception\RuntimeException
to inherit fromRuntimeException
and notInvalidArgumentException
. - #237 updates the
Pimple documentation to recommend
xtreamwayz/pimple-container-interop
instead ofmouf/pimple-interop
, as the latter consumed Pimple v1, instead of the current stable v3.
Fourth release candidate.
- #217 adds a cookbook entry to the documentation detailing how to configure zend-view helpers from other components, as well as how to add custom view helpers.
- Nothing.
- Nothing.
- #219 updates the
"Hello World Using a Configuration-Driven Container" usage case to use
zend-stdlib's
Glob::glob()
instead of theglob()
native function, to ensure the documented solution is portable across platforms. - #223 updates the
documentation to refer to the
composer serve
command where relevant, and also details how to create the command for standalone users. - #221 splits the various cookbook entries into separate files, so each is self-contained.
- #224 adds opening
<?php
tags to two configuration file examples, in order to prevent copy-paste errors.
Third release candidate.
- #185 Support casting zend-view models to arrays.
- #192 adds support for specifying arrays of middleware both when routing and when creating pipeline middleware. This feature is opt-in and backwards compatible; simply specify an array value that does not resolve as a callable. Values in the array must be callables, service names resolving to callable middleware, or fully qualified class names that can be instantiated without arguments, and which result in invokable middleware.
- #200,
#206, and
#211 add
functionality for observing computed
RouteResult
s.Zend\Expressive\Application
now implementsZend\Expressive\Router\RouteResultSubjectInterface
, which allows attachingZend\Expressive\RouteResultObserverInterface
implementations and notifying them of computedRouteResult
instances. The following methods are now available on theApplication
instance:attachRouteResultObserver(Router\RouteResultObserverInterface $observer)
detachRouteResultObserver(Router\RouteResultObserverInterface $observer)
notifyRouteResultObservers(RouteResult $result)
;Application
calls this internally withinrouteMiddleware
. This feature enables the ability to notify objects of the calculatedRouteResult
without needing to inject middleware into the system.
- #81 adds a cookbook entry for creating 404 handlers.
- #210 adds a documentation section on the new zendframework/zend-expressive-helpers utilities.
- Nothing.
- #204 removes the
Router
andTemplate
components, as they are now shipped with the following packages, respectively:- zendframework/zend-expressive-router
- zendframework/zend-expressive-template This package has been updated to depend on each of them.
- #187 Inject the route result as an attribute
- #197 updates the
Zend\Expressive\Container\ApplicationFactory
to raise exceptions in cases where received configuration is unusable, instead of silently ignoring it. This is a small backwards compatibility break, but is done to eliminate difficult to identify issues due to bad configuration. - #202 clarifies
that
RouterInterface
implements MUST throw aRuntimeException
ifaddRoute()
is called after eithermatch()
orgenerateUri()
have been called.
Second release candidate.
- Nothing.
- Nothing.
- Nothing.
- Updated branch aliases: dev-master => 1.0-dev, dev-develop => 1.1-dev.
- Point dev dependencies on sub-components to
~1.0-dev
.
First release candidate.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #160 updates
EmitterStack
to throw a component-specificInvalidArgumentException
instead of the generic SPL version. - #163 change the
documentation on wiring middleware factories to put them in the
dependencies
section ofroutes.global.php
; this keeps the routing and middleware configuration in the same file.
- #158 documents getting started via the installer + skeleton, and also documents "next steps" in terms of creating and wiring middleware when using the skeleton.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #156 updates how
the routing middleware pulls middleware from the container; in order to work
with zend-servicemanager v3 and allow
has()
queries to query abstract factories, a second, boolean argument is now passed.
- 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.