This repository was archived by the owner on Jan 31, 2020. It is now read-only.
Releases: zendframework/zend-view
Releases · zendframework/zend-view
zend-view 2.8.1
zend-view 2.8.0
Added
-
#67 adds a script,
templatemap_generator.php, which is available invendor/bin/templatemap_generator.phponce installed. This script replaces the original present in the zendframework/zendframework package, and simplifies it for the most common use case. Usage is:$ cd module/ModuleName/config $ ../../../vendor/bin/templatemap_generator.php ../view > template_map.config.php
You can also provide a list of files via globbing or usage of
findafter the initial directory argument; if provided that list of files will be used to generate the map. (The directory argument is then used to strip the path information when generating the template name.)
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
zend-view 2.7.0
Added
- #1 adds a new
loop()method to thepartialLoop()helper, allowing the ability to chain setters with rendering:$this->partialLoop()->setObjectKey('foo')->loop('partial', $data) - #60 adds the ability to register and consume arbitrary callables as view helpers within the
HelperPluginManager.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
zend-view 2.6.8
Added
- #22 adds support for the
asyncattribute within theheadScripthelper. - #59 adds and publishes the documentation to https://zendframework.github.io/zend-view/
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #21 updates the
headScripthelper to allow empty attribute types to render as keys only when using an HTML5 doctype.
zend-view 2.6.7
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #58 updates the
url()helper so that it can work with either the zend-mvc v2 router subcomponent or zend-router.
zend-view 2.6.6
Added
- #57 adds
Zend\View\Helper\TranslatorAwareTrait, which provides implementation forZend\I18n\Translator\TranslatorAwareInterface, and allowed removal of duplicated implementations in several helpers.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #57 removes the explicit dependency on
Zend\I18n\Translator\TranslatorAwareInterfaceby allowing helpers to duck type the interface to receive a translator during instantiation; this allows such helpers to work even when zend-i18n is not installed. The following helpers were updated to duck type the interface instead of implement it explicitly:FlashMessengerHeadTitle- all
Navigationhelpers
zend-view 2.6.5
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #55 fixes a circular dependency issue in the navigation helpers with regards to event manager resolution.
zend-view 2.6.4
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #52 fixes several issues detected after re-enabling tests skipped when executed against zend-servicemanager/zend-eventmanager v3:
HelperPluginManagernow implements anEventManagerAwareinitializer.Zend\View\Helper\Navigation\AbstractHelpernow contains logic to ensure that when anEventManagerinstance is lazy-loaded, it composes aSharedEventManager.- The
FlashMessengerfactory now correctly pulls theconfigservice, not theConfigservice (former is both backwards- and forwards compatible).
zend-view 2.6.3
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #50 fixes the initializer defined and registered in
Navigation\PluginManager::__construct()to ensure it properly pulls and injects the application container into navigation helpers, under both zend-servicemanager v2 and v3. Additionally, when lazy-instantiating theNavigation\PluginManager, theNavigationhelper now passes the composed service manager instance to its constructor.
zend-view 2.6.2
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #47 fixes
Navigation\PluginManagerto ensure it is backwards compatible with zend-servicemanager v2, including:- fixing the constructor to be BC with v2 and forwards-compatible with v3.
- adding additional, normalized alias/factory pairs.
- #47 fixes the behavior of
HelperPluginManager::injectTranslator()to return early if no container is provided (fixing an issue with navigation helpers introduced in 2.6.0).