Necessity of replacing HelperPluginManagerFactory to use zend-form view helpers

Hello. The documentation at
https://docs.zendframework.com/zend-expressive/cookbook/using-zend-form-view-helpers/

suggests to replace HelperPluginManagerFactory or provide a delegate
to configure Zend\View\HelperPluginManager with zend form view helpers.

But is this necessary?

The zend-form config provider (zendframework/zend-form/src/ConfigProvider.php)
returns the form view helpers with a ‘view_helpers’ key for which, it seems to me, the existing
HelperPluginManagerFactory already checks for.

I have tested this and zend-form view helpers seem to work without replacing HelperPluginManagerFactory.

Kevin S

Consider editing


and sending a pull request - easier than discussing here :slight_smile:

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/