Expressive v1.0.0.rc6 Release Notes
Release Date: 2016-01-18 // over 8 years ago-
๐ 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.
โ Added
- #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.
๐ Deprecated
- ๐ #270 deprecates
the following methods in
Zend\Expressive\Application
, all of which will be removed in version 1.1:attachRouteResultObserver()
detachRouteResultObserver()
notifyRouteResultObservers()
pipeRouteResultObserverMiddleware()
routeResultObserverMiddleware()
โ Removed
- ๐ #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.
๐ Fixed
- #263 typo fixes in documentation