This patch builds on #11, and completely changes how the url and serverUrl helpers are created and registered with the helper manager:
UrlHelper and ServerUrlHelper are now proxies for their equivalents from zend-expressive-helpers, ensuring they can be used as zend-view helpers.
UrlHelperFactory was now no longer necessary, as it existed previously to ensure the helper was injected with a RouterInterface.
ApplicationUrlDelegatorFactory was no longer necessary, as the zend-expressive-helpers UrlHelperFactory takes care of registering the instance it creates as a route result observer.
ZendViewRendererFactory was updated to pull the zend-expressive-helpers UrlHelper and ServerUrlHelper instances and return their decorated instances when creating factories for the url and serverUrl helpers, respectively.
Essentially, this approach simplifies the component significantly, and moves the logic for URL generation to another component entirely.
This patch builds on #11, and completely changes how the
url
andserverUrl
helpers are created and registered with the helper manager:UrlHelper
andServerUrlHelper
are now proxies for their equivalents from zend-expressive-helpers, ensuring they can be used as zend-view helpers.UrlHelperFactory
was now no longer necessary, as it existed previously to ensure the helper was injected with aRouterInterface
.ApplicationUrlDelegatorFactory
was no longer necessary, as the zend-expressive-helpersUrlHelperFactory
takes care of registering the instance it creates as a route result observer.ZendViewRendererFactory
was updated to pull the zend-expressive-helpersUrlHelper
andServerUrlHelper
instances and return their decorated instances when creating factories for theurl
andserverUrl
helpers, respectively.Essentially, this approach simplifies the component significantly, and moves the logic for URL generation to another component entirely.