From ffda87f9ba439d80571f46a196368101e569b05a Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Tue, 8 Dec 2015 16:44:28 -0600 Subject: [PATCH] Add configuration for view helpers - Adds a factory entry for the `HelperPluginManager`. - Adds a configuration section for defining view helper services. --- .../Resources/config/templates-zend-view.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/Composer/Resources/config/templates-zend-view.php b/src/Composer/Resources/config/templates-zend-view.php index 5752b23..71d872c 100644 --- a/src/Composer/Resources/config/templates-zend-view.php +++ b/src/Composer/Resources/config/templates-zend-view.php @@ -8,6 +8,9 @@ Zend\Expressive\Template\TemplateRendererInterface::class => Zend\Expressive\ZendView\ZendViewRendererFactory::class, + + Zend\View\HelperPluginManager::class => + Zend\Expressive\ZendView\HelperPluginManagerFactory::class, ], ], @@ -22,6 +25,15 @@ 'app' => ['templates/app'], 'layout' => ['templates/layout'], 'error' => ['templates/error'], - ] - ] + ], + ], + + 'view_helpers' => [ + // zend-servicemanager-style configuration for adding view helpers: + // - 'aliases' + // - 'invokables' + // - 'factories' + // - 'abstract_factories' + // - etc. + ], ];