Loading module/Application/config/example.php +2 −2 Changes for module/Application/config/example.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -3,8 +3,8 @@ namespace Application; use UnicaenAuth\Guard\PrivilegeController; use Zend\Router\Http\Literal; use Zend\Router\Http\Segment; use Zend\Mvc\Router\Http\Literal; use Zend\Mvc\Router\Http\Segment; return [ 'bjyauthorize' => [ Loading module/Application/config/merged/fiche-metier.config.php +1 −218 Changes for module/Application/config/merged/fiche-metier.config.php: 1 added line, 218 removed lines. Original line number Diff line number Diff line Loading @@ -2,18 +2,12 @@ namespace Application; use Application\Controller\FicheMetier\FicheMetierController; use Application\Controller\FicheMetier\FicheMetierControllerFactory; use Application\Controller\FicheMetier\FicheMetierTypeController; use Application\Controller\FicheMetier\FicheMetierTypeControllerFactory; use Application\Form\FicheMetier\AjouterFicheTypeForm; use Application\Form\FicheMetier\AjouterFicheTypeFormFactory; use Application\Form\FicheMetier\AjouterFicheTypeHydrator; use Application\Form\FicheMetier\AjouterFicheTypeHydratorFactory; use Application\Form\FicheMetier\AssocierAgentForm; use Application\Form\FicheMetier\AssocierAgentFormFactory; use Application\Form\FicheMetier\AssocierAgentHydrator; use Application\Form\FicheMetier\AssocierAgentHydratorFactory; use Application\Form\FicheMetier\AssocierMetierTypeForm; use Application\Form\FicheMetier\AssocierMetierTypeFormFactory; use Application\Form\FicheMetier\AssocierMetierTypeHydrator; Loading @@ -26,8 +20,6 @@ use Application\Form\FicheMetier\FicheMetierCreationForm; use Application\Form\FicheMetier\FicheMetierCreationFormFactory; use Application\Form\FicheMetier\FicheMetierCreationHydrator; use Application\Form\FicheMetier\FicheMetierCreationHydratorFactory; use Application\Form\FicheMetier\SpecificitePosteForm; use Application\Form\FicheMetier\SpecificitePosteFormFactory; use Application\Form\FicheMetierType\ActiviteExistanteForm; use Application\Form\FicheMetierType\ActiviteExistanteFormFactory; use Application\Form\FicheMetierType\ApplicationsForm; Loading Loading @@ -63,51 +55,6 @@ return [ 'bjyauthorize' => [ 'guards' => [ PrivilegeController::class => [ [ 'controller' => FicheMetierController::class, 'action' => [ 'index', ], 'roles' => [ ], ], [ 'controller' => FicheMetierController::class, 'action' => [ 'afficher', 'editer-specificite-poste', 'associer-metier-type', 'associer-agent', 'associer-poste', 'ajouter-fiche-type', 'retirer-fiche-type', 'modifier-fiche-type', 'selectionner-activite', ], 'privileges' => [ FicheMetierPrivileges::AFFICHER, ], ], [ 'controller' => FicheMetierController::class, 'action' => [ 'historiser', 'restaurer', ], 'privileges' => [ FicheMetierPrivileges::HISTORISER, ], ], [ 'controller' => FicheMetierController::class, 'action' => [ 'editer', 'creer', ], 'privileges' => [ FicheMetierPrivileges::EDITER, ], ], [ 'controller' => FicheMetierTypeController::class, 'action' => [ Loading Loading @@ -148,158 +95,6 @@ return [ 'router' => [ 'routes' => [ 'fiche-metier' => [ 'type' => Literal::class, 'options' => [ 'route' => '/fiche-metier', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'index', ], ], 'may_terminate' => true, 'child_routes' => [ 'afficher' => [ 'type' => Segment::class, 'options' => [ 'route' => '/afficher/:id', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'afficher', ], ], 'may_terminate' => true, ], 'associer-agent' => [ 'type' => Segment::class, 'options' => [ 'route' => '/associer-agent/:fiche', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'associer-agent', ], ], 'may_terminate' => true, ], 'associer-poste' => [ 'type' => Segment::class, 'options' => [ 'route' => '/associer-poste/:fiche', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'associer-poste', ], ], 'may_terminate' => true, ], 'associer-metier-type' => [ 'type' => Segment::class, 'options' => [ 'route' => '/associer-metier-type/:fiche', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'associer-metier-type', ], ], 'may_terminate' => true, ], 'retirer-fiche-type' => [ 'type' => Segment::class, 'options' => [ 'route' => '/retirer-fiche-type/:fiche/:fiche-type-externe', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'retirer-fiche-type', ], ], 'may_terminate' => true, ], 'modifier-fiche-type' => [ 'type' => Segment::class, 'options' => [ 'route' => '/modifier-fiche-type/:fiche/:fiche-type-externe', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'modifier-fiche-type', ], ], 'may_terminate' => true, ], 'selectionner-activite' => [ 'type' => Segment::class, 'options' => [ 'route' => '/selectionner-activite/:fiche/:fiche-type-externe', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'selectionner-activite', ], ], 'may_terminate' => true, ], 'ajouter-fiche-type' => [ 'type' => Segment::class, 'options' => [ 'route' => '/ajouter-fiche-type/:fiche', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'ajouter-fiche-type', ], ], 'may_terminate' => true, ], 'specificite' => [ 'type' => Segment::class, 'options' => [ 'route' => '/specificite/:fiche', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'editer-specificite-poste', ], ], 'may_terminate' => true, ], 'historiser' => [ 'type' => Segment::class, 'options' => [ 'route' => '/historiser/:id', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'historiser', ], ], ], 'restaurer' => [ 'type' => Segment::class, 'options' => [ 'route' => '/restaurer/:id', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'restaurer', ], ], ], 'editer' => [ 'type' => Segment::class, 'options' => [ 'route' => '/editer/:id/:section', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'editer', ], ], ], 'creer' => [ 'type' => Literal::class, 'options' => [ 'route' => '/creer', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'creer', ], ], ], ], ], 'fiche-metier-type' => [ 'type' => Literal::class, 'options' => [ Loading Loading @@ -501,7 +296,6 @@ return [ ], 'controllers' => [ 'factories' => [ FicheMetierController::class => FicheMetierControllerFactory::class, FicheMetierTypeController::class => FicheMetierTypeControllerFactory::class, ], ], Loading @@ -510,21 +304,16 @@ return [ ], 'factories' => [ ActiviteExistanteForm::class => ActiviteExistanteFormFactory::class, FicheMetierCreationForm::class => FicheMetierCreationFormFactory::class, LibelleForm::class => LibelleFormFactory::class, MissionsPrincipalesForm::class => MissionsPrincipalesFormFactory::class, SpecificitePosteForm::class => SpecificitePosteFormFactory::class, AssocierMetierTypeForm::class => AssocierMetierTypeFormFactory::class, AssocierAgentForm::class => AssocierAgentFormFactory::class, AssocierPosteForm::class => AssocierPosteFormFactory::class, FormationBaseForm::class => FormationBaseFormFactory::class, FormationOperationnelleForm::class => FormationOperationnelleFormFactory::class, FormationComportementaleForm::class => FormationComportementaleFormFactory::class, ApplicationsForm::class => ApplicationsFormFactory::class, AjouterFicheTypeForm::class=>AjouterFicheTypeFormFactory::class, ], ], 'hydrators' => [ Loading @@ -535,14 +324,8 @@ return [ ], 'factories' => [ FicheMetierCreationHydrator::class => FicheMetierCreationHydratorFactory::class, LibelleHydrator::class => LibelleHydratorFactory::class, AssocierMetierTypeHydrator::class => AssocierMetierTypeHydratorFactory::class, AssocierAgentHydrator::class => AssocierAgentHydratorFactory::class, AssocierPosteHydrator::class => AssocierPosteHydratorFactory::class, ApplicationsHydrator::class => ApplicationsHydratorFactory::class, AjouterFicheTypeHydrator::class => AjouterFicheTypeHydratorFactory::class, ], ], 'view_helpers' => [ Loading module/Application/config/merged/fiche-poste.config.php +255 Changes for module/Application/config/merged/fiche-poste.config.php: 255 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application; use Application\Controller\FichePoste\FichePosteController; use Application\Controller\FichePoste\FichePosteControllerFactory; use Application\Form\AjouterFicheMetier\AjouterFicheMetierForm; use Application\Form\AjouterFicheMetier\AjouterFicheMetierFormFactory; use Application\Form\AjouterFicheMetier\AjouterFicheMetierHydrator; use Application\Form\AjouterFicheMetier\AjouterFicheMetierHydratorFactory; use Application\Form\AssocierAgent\AssocierAgentForm; use Application\Form\AssocierAgent\AssocierAgentFormFactory; use Application\Form\AssocierAgent\AssocierAgentHydrator; use Application\Form\AssocierAgent\AssocierAgentHydratorFactory; use Application\Form\AssocierPoste\AssocierPosteForm; use Application\Form\AssocierPoste\AssocierPosteFormFactory; use Application\Form\AssocierPoste\AssocierPosteHydrator; use Application\Form\AssocierPoste\AssocierPosteHydratorFactory; use Application\Form\FichePosteCreation\FichePosteCreationForm; use Application\Form\FichePosteCreation\FichePosteCreationFormFactory; use Application\Form\FichePosteCreation\FichePosteCreationHydrator; use Application\Form\FichePosteCreation\FichePosteCreationHydratorFactory; use Application\Form\SpecificitePoste\SpecificitePosteForm; use Application\Form\SpecificitePoste\SpecificitePosteFormFactory; use Application\Form\SpecificitePoste\SpecificitePosteHydrator; use Application\Service\FichePoste\FichePosteService; use Application\Service\FichePoste\FichePosteServiceFactory; use UnicaenAuth\Guard\PrivilegeController; use Zend\Mvc\Router\Http\Literal; use Zend\Mvc\Router\Http\Segment; return [ 'bjyauthorize' => [ 'guards' => [ PrivilegeController::class => [ [ 'controller' => FichePosteController::class, 'action' => [ 'index', 'ajouter', 'afficher', 'editer', 'historiser', 'restaurer', 'detruire', 'associer-agent', 'associer-poste', 'editer-specificite', 'ajouter-fiche-metier', 'retirer-fiche-metier', 'modifier-fiche-metier', 'selectionner-activite', ], 'roles' => [ ], ], ], ], ], 'router' => [ 'routes' => [ 'fiche-poste' => [ 'type' => Literal::class, 'may_terminate' => true, 'options' => [ 'route' => '/fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'index', ], ], 'child_routes' => [ 'ajouter' => [ 'type' => Literal::class, 'may_terminate' => true, 'options' => [ 'route' => '/ajouter', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'ajouter', ], ], ], 'afficher' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/afficher/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'afficher', ], ], ], 'editer' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/editer/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'editer', ], ], ], 'historiser' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/historiser/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'historiser', ], ], ], 'restaurer' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/restaurer/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'restaurer', ], ], ], 'detruire' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/detruire/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'detruire', ], ], ], 'associer-agent' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/associer-agent/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'associer-agent', ], ], ], 'associer-poste' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/associer-poste/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'associer-poste', ], ], ], 'ajouter-fiche-metier' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/ajouter-fiche-metier/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'ajouter-fiche-metier', ], ], ], 'modifier-fiche-metier' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/modifier-fiche-metier/:fiche-poste/:fiche-type-externe', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'modifier-fiche-metier', ], ], ], 'retirer-fiche-metier' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/retirer-fiche-metier/:fiche-poste/:fiche-type-externe', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'retirer-fiche-metier', ], ], ], 'selectionner-activite' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/selectionner-activite/:fiche-poste/:fiche-type-externe', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'selectionner-activite', ], ], ], 'editer-specificite' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/editer-specificite/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'editer-specificite', ], ], ], ], ], ], ], 'service_manager' => [ 'factories' => [ FichePosteService::class => FichePosteServiceFactory::class, ], ], 'controllers' => [ 'factories' => [ FichePosteController::class => FichePosteControllerFactory::class, ], ], 'form_elements' => [ 'factories' => [ AjouterFicheMetierForm::class => AjouterFicheMetierFormFactory::class, AssocierAgentForm::class => AssocierAgentFormFactory::class, AssocierPosteForm::class => AssocierPosteFormFactory::class, FichePosteCreationForm::class => FichePosteCreationFormFactory::class, SpecificitePosteForm::class => SpecificitePosteFormFactory::class, ], ], 'hydrators' => [ 'invokables' => [ SpecificitePosteHydrator::class => SpecificitePosteHydrator::class, ], 'factories' => [ AjouterFicheMetierHydrator::class => AjouterFicheMetierHydratorFactory::class, AssocierAgentHydrator::class => AssocierAgentHydratorFactory::class, AssocierPosteHydrator::class => AssocierPosteHydratorFactory::class, FichePosteCreationHydrator::class => FichePosteCreationHydratorFactory::class, ], ] ]; No newline at end of file module/Application/config/merged/menu.config.php +2 −2 Changes for module/Application/config/merged/menu.config.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -107,8 +107,8 @@ return [ 'icon' => 'fas fa-angle-right' ], [ 'label' => 'Les fiches métiers', 'route' => 'fiche-metier', 'label' => 'Les fiches de poste', 'route' => 'fiche-poste', 'privileges' => FicheMetierPrivileges::AFFICHER, 'dropdown-header' => true, 'icon' => 'fas fa-angle-right' Loading module/Application/src/Application/Controller/FicheMetier/FicheMetierController.php→module/Application/src/Application/Controller/FichePoste/FichePosteController.php +151 −192 File changed and moved.Preview size limit exceeded, changes collapsed. Show changes Loading
module/Application/config/example.php +2 −2 Changes for module/Application/config/example.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -3,8 +3,8 @@ namespace Application; use UnicaenAuth\Guard\PrivilegeController; use Zend\Router\Http\Literal; use Zend\Router\Http\Segment; use Zend\Mvc\Router\Http\Literal; use Zend\Mvc\Router\Http\Segment; return [ 'bjyauthorize' => [ Loading
module/Application/config/merged/fiche-metier.config.php +1 −218 Changes for module/Application/config/merged/fiche-metier.config.php: 1 added line, 218 removed lines. Original line number Diff line number Diff line Loading @@ -2,18 +2,12 @@ namespace Application; use Application\Controller\FicheMetier\FicheMetierController; use Application\Controller\FicheMetier\FicheMetierControllerFactory; use Application\Controller\FicheMetier\FicheMetierTypeController; use Application\Controller\FicheMetier\FicheMetierTypeControllerFactory; use Application\Form\FicheMetier\AjouterFicheTypeForm; use Application\Form\FicheMetier\AjouterFicheTypeFormFactory; use Application\Form\FicheMetier\AjouterFicheTypeHydrator; use Application\Form\FicheMetier\AjouterFicheTypeHydratorFactory; use Application\Form\FicheMetier\AssocierAgentForm; use Application\Form\FicheMetier\AssocierAgentFormFactory; use Application\Form\FicheMetier\AssocierAgentHydrator; use Application\Form\FicheMetier\AssocierAgentHydratorFactory; use Application\Form\FicheMetier\AssocierMetierTypeForm; use Application\Form\FicheMetier\AssocierMetierTypeFormFactory; use Application\Form\FicheMetier\AssocierMetierTypeHydrator; Loading @@ -26,8 +20,6 @@ use Application\Form\FicheMetier\FicheMetierCreationForm; use Application\Form\FicheMetier\FicheMetierCreationFormFactory; use Application\Form\FicheMetier\FicheMetierCreationHydrator; use Application\Form\FicheMetier\FicheMetierCreationHydratorFactory; use Application\Form\FicheMetier\SpecificitePosteForm; use Application\Form\FicheMetier\SpecificitePosteFormFactory; use Application\Form\FicheMetierType\ActiviteExistanteForm; use Application\Form\FicheMetierType\ActiviteExistanteFormFactory; use Application\Form\FicheMetierType\ApplicationsForm; Loading Loading @@ -63,51 +55,6 @@ return [ 'bjyauthorize' => [ 'guards' => [ PrivilegeController::class => [ [ 'controller' => FicheMetierController::class, 'action' => [ 'index', ], 'roles' => [ ], ], [ 'controller' => FicheMetierController::class, 'action' => [ 'afficher', 'editer-specificite-poste', 'associer-metier-type', 'associer-agent', 'associer-poste', 'ajouter-fiche-type', 'retirer-fiche-type', 'modifier-fiche-type', 'selectionner-activite', ], 'privileges' => [ FicheMetierPrivileges::AFFICHER, ], ], [ 'controller' => FicheMetierController::class, 'action' => [ 'historiser', 'restaurer', ], 'privileges' => [ FicheMetierPrivileges::HISTORISER, ], ], [ 'controller' => FicheMetierController::class, 'action' => [ 'editer', 'creer', ], 'privileges' => [ FicheMetierPrivileges::EDITER, ], ], [ 'controller' => FicheMetierTypeController::class, 'action' => [ Loading Loading @@ -148,158 +95,6 @@ return [ 'router' => [ 'routes' => [ 'fiche-metier' => [ 'type' => Literal::class, 'options' => [ 'route' => '/fiche-metier', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'index', ], ], 'may_terminate' => true, 'child_routes' => [ 'afficher' => [ 'type' => Segment::class, 'options' => [ 'route' => '/afficher/:id', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'afficher', ], ], 'may_terminate' => true, ], 'associer-agent' => [ 'type' => Segment::class, 'options' => [ 'route' => '/associer-agent/:fiche', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'associer-agent', ], ], 'may_terminate' => true, ], 'associer-poste' => [ 'type' => Segment::class, 'options' => [ 'route' => '/associer-poste/:fiche', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'associer-poste', ], ], 'may_terminate' => true, ], 'associer-metier-type' => [ 'type' => Segment::class, 'options' => [ 'route' => '/associer-metier-type/:fiche', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'associer-metier-type', ], ], 'may_terminate' => true, ], 'retirer-fiche-type' => [ 'type' => Segment::class, 'options' => [ 'route' => '/retirer-fiche-type/:fiche/:fiche-type-externe', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'retirer-fiche-type', ], ], 'may_terminate' => true, ], 'modifier-fiche-type' => [ 'type' => Segment::class, 'options' => [ 'route' => '/modifier-fiche-type/:fiche/:fiche-type-externe', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'modifier-fiche-type', ], ], 'may_terminate' => true, ], 'selectionner-activite' => [ 'type' => Segment::class, 'options' => [ 'route' => '/selectionner-activite/:fiche/:fiche-type-externe', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'selectionner-activite', ], ], 'may_terminate' => true, ], 'ajouter-fiche-type' => [ 'type' => Segment::class, 'options' => [ 'route' => '/ajouter-fiche-type/:fiche', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'ajouter-fiche-type', ], ], 'may_terminate' => true, ], 'specificite' => [ 'type' => Segment::class, 'options' => [ 'route' => '/specificite/:fiche', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'editer-specificite-poste', ], ], 'may_terminate' => true, ], 'historiser' => [ 'type' => Segment::class, 'options' => [ 'route' => '/historiser/:id', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'historiser', ], ], ], 'restaurer' => [ 'type' => Segment::class, 'options' => [ 'route' => '/restaurer/:id', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'restaurer', ], ], ], 'editer' => [ 'type' => Segment::class, 'options' => [ 'route' => '/editer/:id/:section', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'editer', ], ], ], 'creer' => [ 'type' => Literal::class, 'options' => [ 'route' => '/creer', 'defaults' => [ 'controller' => FicheMetierController::class, 'action' => 'creer', ], ], ], ], ], 'fiche-metier-type' => [ 'type' => Literal::class, 'options' => [ Loading Loading @@ -501,7 +296,6 @@ return [ ], 'controllers' => [ 'factories' => [ FicheMetierController::class => FicheMetierControllerFactory::class, FicheMetierTypeController::class => FicheMetierTypeControllerFactory::class, ], ], Loading @@ -510,21 +304,16 @@ return [ ], 'factories' => [ ActiviteExistanteForm::class => ActiviteExistanteFormFactory::class, FicheMetierCreationForm::class => FicheMetierCreationFormFactory::class, LibelleForm::class => LibelleFormFactory::class, MissionsPrincipalesForm::class => MissionsPrincipalesFormFactory::class, SpecificitePosteForm::class => SpecificitePosteFormFactory::class, AssocierMetierTypeForm::class => AssocierMetierTypeFormFactory::class, AssocierAgentForm::class => AssocierAgentFormFactory::class, AssocierPosteForm::class => AssocierPosteFormFactory::class, FormationBaseForm::class => FormationBaseFormFactory::class, FormationOperationnelleForm::class => FormationOperationnelleFormFactory::class, FormationComportementaleForm::class => FormationComportementaleFormFactory::class, ApplicationsForm::class => ApplicationsFormFactory::class, AjouterFicheTypeForm::class=>AjouterFicheTypeFormFactory::class, ], ], 'hydrators' => [ Loading @@ -535,14 +324,8 @@ return [ ], 'factories' => [ FicheMetierCreationHydrator::class => FicheMetierCreationHydratorFactory::class, LibelleHydrator::class => LibelleHydratorFactory::class, AssocierMetierTypeHydrator::class => AssocierMetierTypeHydratorFactory::class, AssocierAgentHydrator::class => AssocierAgentHydratorFactory::class, AssocierPosteHydrator::class => AssocierPosteHydratorFactory::class, ApplicationsHydrator::class => ApplicationsHydratorFactory::class, AjouterFicheTypeHydrator::class => AjouterFicheTypeHydratorFactory::class, ], ], 'view_helpers' => [ Loading
module/Application/config/merged/fiche-poste.config.php +255 Changes for module/Application/config/merged/fiche-poste.config.php: 255 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application; use Application\Controller\FichePoste\FichePosteController; use Application\Controller\FichePoste\FichePosteControllerFactory; use Application\Form\AjouterFicheMetier\AjouterFicheMetierForm; use Application\Form\AjouterFicheMetier\AjouterFicheMetierFormFactory; use Application\Form\AjouterFicheMetier\AjouterFicheMetierHydrator; use Application\Form\AjouterFicheMetier\AjouterFicheMetierHydratorFactory; use Application\Form\AssocierAgent\AssocierAgentForm; use Application\Form\AssocierAgent\AssocierAgentFormFactory; use Application\Form\AssocierAgent\AssocierAgentHydrator; use Application\Form\AssocierAgent\AssocierAgentHydratorFactory; use Application\Form\AssocierPoste\AssocierPosteForm; use Application\Form\AssocierPoste\AssocierPosteFormFactory; use Application\Form\AssocierPoste\AssocierPosteHydrator; use Application\Form\AssocierPoste\AssocierPosteHydratorFactory; use Application\Form\FichePosteCreation\FichePosteCreationForm; use Application\Form\FichePosteCreation\FichePosteCreationFormFactory; use Application\Form\FichePosteCreation\FichePosteCreationHydrator; use Application\Form\FichePosteCreation\FichePosteCreationHydratorFactory; use Application\Form\SpecificitePoste\SpecificitePosteForm; use Application\Form\SpecificitePoste\SpecificitePosteFormFactory; use Application\Form\SpecificitePoste\SpecificitePosteHydrator; use Application\Service\FichePoste\FichePosteService; use Application\Service\FichePoste\FichePosteServiceFactory; use UnicaenAuth\Guard\PrivilegeController; use Zend\Mvc\Router\Http\Literal; use Zend\Mvc\Router\Http\Segment; return [ 'bjyauthorize' => [ 'guards' => [ PrivilegeController::class => [ [ 'controller' => FichePosteController::class, 'action' => [ 'index', 'ajouter', 'afficher', 'editer', 'historiser', 'restaurer', 'detruire', 'associer-agent', 'associer-poste', 'editer-specificite', 'ajouter-fiche-metier', 'retirer-fiche-metier', 'modifier-fiche-metier', 'selectionner-activite', ], 'roles' => [ ], ], ], ], ], 'router' => [ 'routes' => [ 'fiche-poste' => [ 'type' => Literal::class, 'may_terminate' => true, 'options' => [ 'route' => '/fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'index', ], ], 'child_routes' => [ 'ajouter' => [ 'type' => Literal::class, 'may_terminate' => true, 'options' => [ 'route' => '/ajouter', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'ajouter', ], ], ], 'afficher' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/afficher/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'afficher', ], ], ], 'editer' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/editer/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'editer', ], ], ], 'historiser' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/historiser/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'historiser', ], ], ], 'restaurer' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/restaurer/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'restaurer', ], ], ], 'detruire' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/detruire/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'detruire', ], ], ], 'associer-agent' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/associer-agent/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'associer-agent', ], ], ], 'associer-poste' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/associer-poste/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'associer-poste', ], ], ], 'ajouter-fiche-metier' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/ajouter-fiche-metier/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'ajouter-fiche-metier', ], ], ], 'modifier-fiche-metier' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/modifier-fiche-metier/:fiche-poste/:fiche-type-externe', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'modifier-fiche-metier', ], ], ], 'retirer-fiche-metier' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/retirer-fiche-metier/:fiche-poste/:fiche-type-externe', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'retirer-fiche-metier', ], ], ], 'selectionner-activite' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/selectionner-activite/:fiche-poste/:fiche-type-externe', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'selectionner-activite', ], ], ], 'editer-specificite' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/editer-specificite/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'editer-specificite', ], ], ], ], ], ], ], 'service_manager' => [ 'factories' => [ FichePosteService::class => FichePosteServiceFactory::class, ], ], 'controllers' => [ 'factories' => [ FichePosteController::class => FichePosteControllerFactory::class, ], ], 'form_elements' => [ 'factories' => [ AjouterFicheMetierForm::class => AjouterFicheMetierFormFactory::class, AssocierAgentForm::class => AssocierAgentFormFactory::class, AssocierPosteForm::class => AssocierPosteFormFactory::class, FichePosteCreationForm::class => FichePosteCreationFormFactory::class, SpecificitePosteForm::class => SpecificitePosteFormFactory::class, ], ], 'hydrators' => [ 'invokables' => [ SpecificitePosteHydrator::class => SpecificitePosteHydrator::class, ], 'factories' => [ AjouterFicheMetierHydrator::class => AjouterFicheMetierHydratorFactory::class, AssocierAgentHydrator::class => AssocierAgentHydratorFactory::class, AssocierPosteHydrator::class => AssocierPosteHydratorFactory::class, FichePosteCreationHydrator::class => FichePosteCreationHydratorFactory::class, ], ] ]; No newline at end of file
module/Application/config/merged/menu.config.php +2 −2 Changes for module/Application/config/merged/menu.config.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -107,8 +107,8 @@ return [ 'icon' => 'fas fa-angle-right' ], [ 'label' => 'Les fiches métiers', 'route' => 'fiche-metier', 'label' => 'Les fiches de poste', 'route' => 'fiche-poste', 'privileges' => FicheMetierPrivileges::AFFICHER, 'dropdown-header' => true, 'icon' => 'fas fa-angle-right' Loading
module/Application/src/Application/Controller/FicheMetier/FicheMetierController.php→module/Application/src/Application/Controller/FichePoste/FichePosteController.php +151 −192 File changed and moved.Preview size limit exceeded, changes collapsed. Show changes