This repository was archived by the owner on Jan 21, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,22 @@ All notable changes to this project will be documented in this file, in reverse
8
8
9
9
- [ #4 ] ( https://github.com/zendframework/zend-expressive-zendviewrenderer/pull/ )
10
10
Allow rendering view models via render
11
+ - [ #9 ] ( https://github.com/zendframework/zend-expressive-zendviewrenderer/pull/ )
12
+ updates ` UrlHelper ` to implement ` Zend\Expressive\Template\RouteResultObserverInterface ` ,
13
+ and the ` update() ` method it defines. This allows it to observer the
14
+ application for the ` RouteResult ` and store it for later URI generation.
15
+ To accomplish this, the following additional changes were made:
16
+ - ` Zend\Expressive\ZendView\UrlHelperFactory ` was added, for creating the
17
+ ` UrlHelper ` instance. This should be registered with the application service
18
+ container.
19
+ - ` Zend\Expressive\ZendView\ZendViewRendererFactory ` was updated to look for
20
+ the ` Zend\Expressive\ZendView\UrlHelper ` service in the application service
21
+ container, and use it to seed the ` HelperManager ` when available.
22
+ - ` Zend\Expressive\ZendView\ApplicationUrlDelegatorFactory ` was created; when
23
+ registered as a delegator factory with the ` Zend\Expressive\Application `
24
+ service, it will pull the ` UrlHelper ` and attach it as a route result
25
+ observer to the ` Application ` instance. Documentation was also provided for
26
+ creating a Pimple extension for accomplishing this.
11
27
12
28
### Deprecated
13
29
You can’t perform that action at this time.
0 commit comments