Commit 2c3f3535 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Déplacement de config des aides de vues

parent 1de1ef1b
......@@ -8,7 +8,6 @@ use Zend\ModuleManager\Feature\BootstrapListenerInterface;
use Zend\ModuleManager\Feature\ConfigProviderInterface;
use Zend\ModuleManager\Feature\ControllerPluginProviderInterface;
use Zend\ModuleManager\Feature\ServiceProviderInterface;
use Zend\ModuleManager\Feature\ViewHelperProviderInterface;
use Zend\Console\Request as ConsoleRequest;
use Zend\Validator\AbstractValidator;
use Zend\Mvc\I18n\Translator;
......@@ -27,7 +26,6 @@ class Module implements
BootstrapListenerInterface,
ConfigProviderInterface,
ControllerPluginProviderInterface,
ViewHelperProviderInterface,
ServiceProviderInterface
{
......@@ -220,45 +218,6 @@ class Module implements
);
}
/**
*
* @return array
* @see ViewHelperProviderInterface
*/
public function getViewHelperConfig()
{
return array(
'factories' => array(
'appInfos' => 'UnicaenApp\View\Helper\AppInfosFactory',
'appLink' => 'UnicaenApp\View\Helper\AppLinkFactory',
'userProfileSelect' => 'UnicaenAuth\View\Helper\UserProfileSelectFactory',
),
'invokables' => array(
'appConnection' => 'UnicaenApp\View\Helper\AppConnection',
'messenger' => 'UnicaenApp\View\Helper\Messenger',
'modalAjaxDialog' => 'UnicaenApp\View\Helper\ModalAjaxDialog',
'confirm' => 'UnicaenApp\View\Helper\ConfirmHelper',
'toggleDetails' => 'UnicaenApp\View\Helper\ToggleDetails',
'multipageFormFieldset' => 'UnicaenApp\Form\View\Helper\MultipageFormFieldset',
'multipageFormNav' => 'UnicaenApp\Form\View\Helper\MultipageFormNav',
'multipageFormRow' => 'UnicaenApp\Form\View\Helper\MultipageFormRow',
'multipageFormRecap' => 'UnicaenApp\Form\View\Helper\MultipageFormRecap',
'formControlGroup' => 'UnicaenApp\Form\View\Helper\FormControlGroup',
'formDate' => 'UnicaenApp\Form\View\Helper\FormDate',
'formDateInfSup' => 'UnicaenApp\Form\View\Helper\FormDateInfSup',
'formRowDateInfSup' => 'UnicaenApp\Form\View\Helper\FormRowDateInfSup',
'formSearchAndSelect' => 'UnicaenApp\Form\View\Helper\FormSearchAndSelect',
'formLdapPeople' => 'UnicaenApp\Form\View\Helper\FormLdapPeople',
'formErrors' => 'UnicaenApp\Form\View\Helper\FormErrors',
'messageCollector' => 'UnicaenApp\View\Helper\MessageCollectorHelper',
/* Nouvelles aides de vue qui surchargent les anciennent pour exploiter des directives de configuration */
'headScript' => 'UnicaenApp\View\Helper\HeadScript',
'inlineScript' => 'UnicaenApp\View\Helper\InlineScript',
'headLink' => 'UnicaenApp\View\Helper\HeadLink',
),
);
}
/**
*
* @return array
......
......@@ -219,9 +219,33 @@ return [
],
'view_helpers' => [
'factories' => [
'Message' => 'UnicaenApp\Message\View\Helper\MessageHelperFactory',
'appInfos' => 'UnicaenApp\View\Helper\AppInfosFactory',
'appLink' => 'UnicaenApp\View\Helper\AppLinkFactory',
'userProfileSelect' => 'UnicaenAuth\View\Helper\UserProfileSelectFactory',
'Message' => 'UnicaenApp\Message\View\Helper\MessageHelperFactory',
],
'invokables' => [
'appConnection' => 'UnicaenApp\View\Helper\AppConnection',
'messenger' => 'UnicaenApp\View\Helper\Messenger',
'modalAjaxDialog' => 'UnicaenApp\View\Helper\ModalAjaxDialog',
'confirm' => 'UnicaenApp\View\Helper\ConfirmHelper',
'toggleDetails' => 'UnicaenApp\View\Helper\ToggleDetails',
'multipageFormFieldset' => 'UnicaenApp\Form\View\Helper\MultipageFormFieldset',
'multipageFormNav' => 'UnicaenApp\Form\View\Helper\MultipageFormNav',
'multipageFormRow' => 'UnicaenApp\Form\View\Helper\MultipageFormRow',
'multipageFormRecap' => 'UnicaenApp\Form\View\Helper\MultipageFormRecap',
'formControlGroup' => 'UnicaenApp\Form\View\Helper\FormControlGroup',
'formDate' => 'UnicaenApp\Form\View\Helper\FormDate',
'formDateInfSup' => 'UnicaenApp\Form\View\Helper\FormDateInfSup',
'formRowDateInfSup' => 'UnicaenApp\Form\View\Helper\FormRowDateInfSup',
'formSearchAndSelect' => 'UnicaenApp\Form\View\Helper\FormSearchAndSelect',
'formLdapPeople' => 'UnicaenApp\Form\View\Helper\FormLdapPeople',
'formErrors' => 'UnicaenApp\Form\View\Helper\FormErrors',
'messageCollector' => 'UnicaenApp\View\Helper\MessageCollectorHelper',
/* Nouvelles aides de vue qui surchargent les anciennent pour exploiter des directives de configuration */
'headScript' => 'UnicaenApp\View\Helper\HeadScript',
'inlineScript' => 'UnicaenApp\View\Helper\InlineScript',
'headLink' => 'UnicaenApp\View\Helper\HeadLink',
'Uploader' => 'UnicaenApp\View\Helper\Upload\UploaderHelper',
'formAdvancedMultiCheckbox' => 'UnicaenApp\Form\View\Helper\FormAdvancedMultiCheckbox',
'historique' => 'UnicaenApp\View\Helper\HistoriqueViewHelper',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment