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 −2 Changes for module/Application/config/merged/fiche-metier.config.php: 0 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -516,7 +516,6 @@ return [ SpecificitePosteForm::class => SpecificitePosteFormFactory::class, AssocierMetierTypeForm::class => AssocierMetierTypeFormFactory::class, AssocierAgentForm::class => AssocierAgentFormFactory::class, AssocierPosteForm::class => AssocierPosteFormFactory::class, FormationBaseForm::class => FormationBaseFormFactory::class, Loading @@ -538,7 +537,6 @@ return [ FicheMetierCreationHydrator::class => FicheMetierCreationHydratorFactory::class, LibelleHydrator::class => LibelleHydratorFactory::class, AssocierMetierTypeHydrator::class => AssocierMetierTypeHydratorFactory::class, AssocierAgentHydrator::class => AssocierAgentHydratorFactory::class, AssocierPosteHydrator::class => AssocierPosteHydratorFactory::class, ApplicationsHydrator::class => ApplicationsHydratorFactory::class, Loading module/Application/config/merged/fiche-poste.config.php +156 Changes for module/Application/config/merged/fiche-poste.config.php: 156 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\AssocierAgent\AssocierAgentForm; use Application\Form\AssocierAgent\AssocierAgentFormFactory; use Application\Form\AssocierAgent\AssocierAgentHydrator; use Application\Form\AssocierAgent\AssocierAgentHydratorFactory; 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', ], '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, 'options' => [ 'route' => '/associer-agent/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'associer-agent', ], ], 'may_terminate' => true, ], ], ], ], ], 'service_manager' => [ 'factories' => [ FichePosteService::class => FichePosteServiceFactory::class, ], ], 'controllers' => [ 'factories' => [ FichePosteController::class => FichePosteControllerFactory::class, ], ], 'form_elements' => [ 'factories' => [ AssocierAgentForm::class => AssocierAgentFormFactory::class, ], ], 'hydrators' => [ 'factories' => [ AssocierAgentHydrator::class => AssocierAgentHydratorFactory::class, ], ] ]; No newline at end of file module/Application/config/merged/menu.config.php +7 Changes for module/Application/config/merged/menu.config.php: 7 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -113,6 +113,13 @@ return [ 'dropdown-header' => true, 'icon' => 'fas fa-angle-right' ], [ 'label' => 'Les fiches de poste', 'route' => 'fiche-poste', 'privileges' => FicheMetierPrivileges::AFFICHER, 'dropdown-header' => true, 'icon' => 'fas fa-angle-right' ], [ 'label' => 'Les fiches types', 'route' => 'fiche-metier-type', Loading module/Application/src/Application/Controller/FicheMetier/FicheMetierController.php +3 −35 Changes for module/Application/src/Application/Controller/FicheMetier/FicheMetierController.php: 3 added lines, 35 removed lines. Original line number Diff line number Diff line Loading @@ -2,12 +2,11 @@ namespace Application\Controller\FicheMetier; use Application\Entity\Db\FicheMetier; use Application\Entity\Db\FichePoste; use Application\Entity\Db\FicheTypeExterne; use Application\Entity\Db\SpecificitePoste; use Application\Form\AssocierAgent\AssocierAgentFormAwareTrait; use Application\Form\FicheMetier\AjouterFicheTypeFormAwareTrait; use Application\Form\FicheMetier\AssocierAgentForm; use Application\Form\FicheMetier\AssocierAgentFormAwareTrait; use Application\Form\FicheMetier\AssocierMetierTypeForm; use Application\Form\FicheMetier\AssocierMetierTypeFormAwareTrait; use Application\Form\FicheMetier\AssocierPosteFormAwareTrait; Loading Loading @@ -37,15 +36,6 @@ class FicheMetierController extends AbstractActionController use SpecificitePosteFormAwareTrait; use AjouterFicheTypeFormAwareTrait; public function indexAction() { $fichesMetiers = $this->getFicheMetierService()->getFichesMetiers(); return new ViewModel([ 'fichesMetiers' => $fichesMetiers, ]); } public function afficherAction() { $ficheId = $this->params()->fromRoute('id'); Loading @@ -64,28 +54,6 @@ class FicheMetierController extends AbstractActionController ]); } public function historiserAction() { $ficheId = $this->params()->fromRoute('id'); $fiche = $this->getFicheMetierService()->getFicheMetier($ficheId); if ($fiche === null) throw new RuntimeException("Aucune fiche ne porte l'identifiant [".$ficheId."]"); $this->getFicheMetierService()->historiser($fiche); $this->redirect()->toRoute('fiche-metier',[], [], true); } public function restaurerAction() { $ficheId = $this->params()->fromRoute('id'); $fiche = $this->getFicheMetierService()->getFicheMetier($ficheId); if ($fiche === null) throw new RuntimeException("Aucune fiche ne porte l'identifiant [".$ficheId."]"); $this->getFicheMetierService()->restaurer($fiche); $this->redirect()->toRoute('fiche-metier',[], [], true); } public function editerAction() { $libelle = 'Environnement du poste de travail dans l\'organisation'; Loading @@ -98,7 +66,7 @@ class FicheMetierController extends AbstractActionController { /** @var FicheMetierCreationForm $form */ $form = $this->getFicherMetierCreationForm(); $fiche = new FicheMetier(); $fiche = new FichePoste(); $form->bind($fiche); /** @var Request $request */ Loading 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 −2 Changes for module/Application/config/merged/fiche-metier.config.php: 0 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -516,7 +516,6 @@ return [ SpecificitePosteForm::class => SpecificitePosteFormFactory::class, AssocierMetierTypeForm::class => AssocierMetierTypeFormFactory::class, AssocierAgentForm::class => AssocierAgentFormFactory::class, AssocierPosteForm::class => AssocierPosteFormFactory::class, FormationBaseForm::class => FormationBaseFormFactory::class, Loading @@ -538,7 +537,6 @@ return [ FicheMetierCreationHydrator::class => FicheMetierCreationHydratorFactory::class, LibelleHydrator::class => LibelleHydratorFactory::class, AssocierMetierTypeHydrator::class => AssocierMetierTypeHydratorFactory::class, AssocierAgentHydrator::class => AssocierAgentHydratorFactory::class, AssocierPosteHydrator::class => AssocierPosteHydratorFactory::class, ApplicationsHydrator::class => ApplicationsHydratorFactory::class, Loading
module/Application/config/merged/fiche-poste.config.php +156 Changes for module/Application/config/merged/fiche-poste.config.php: 156 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\AssocierAgent\AssocierAgentForm; use Application\Form\AssocierAgent\AssocierAgentFormFactory; use Application\Form\AssocierAgent\AssocierAgentHydrator; use Application\Form\AssocierAgent\AssocierAgentHydratorFactory; 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', ], '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, 'options' => [ 'route' => '/associer-agent/:fiche-poste', 'defaults' => [ 'controller' => FichePosteController::class, 'action' => 'associer-agent', ], ], 'may_terminate' => true, ], ], ], ], ], 'service_manager' => [ 'factories' => [ FichePosteService::class => FichePosteServiceFactory::class, ], ], 'controllers' => [ 'factories' => [ FichePosteController::class => FichePosteControllerFactory::class, ], ], 'form_elements' => [ 'factories' => [ AssocierAgentForm::class => AssocierAgentFormFactory::class, ], ], 'hydrators' => [ 'factories' => [ AssocierAgentHydrator::class => AssocierAgentHydratorFactory::class, ], ] ]; No newline at end of file
module/Application/config/merged/menu.config.php +7 Changes for module/Application/config/merged/menu.config.php: 7 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -113,6 +113,13 @@ return [ 'dropdown-header' => true, 'icon' => 'fas fa-angle-right' ], [ 'label' => 'Les fiches de poste', 'route' => 'fiche-poste', 'privileges' => FicheMetierPrivileges::AFFICHER, 'dropdown-header' => true, 'icon' => 'fas fa-angle-right' ], [ 'label' => 'Les fiches types', 'route' => 'fiche-metier-type', Loading
module/Application/src/Application/Controller/FicheMetier/FicheMetierController.php +3 −35 Changes for module/Application/src/Application/Controller/FicheMetier/FicheMetierController.php: 3 added lines, 35 removed lines. Original line number Diff line number Diff line Loading @@ -2,12 +2,11 @@ namespace Application\Controller\FicheMetier; use Application\Entity\Db\FicheMetier; use Application\Entity\Db\FichePoste; use Application\Entity\Db\FicheTypeExterne; use Application\Entity\Db\SpecificitePoste; use Application\Form\AssocierAgent\AssocierAgentFormAwareTrait; use Application\Form\FicheMetier\AjouterFicheTypeFormAwareTrait; use Application\Form\FicheMetier\AssocierAgentForm; use Application\Form\FicheMetier\AssocierAgentFormAwareTrait; use Application\Form\FicheMetier\AssocierMetierTypeForm; use Application\Form\FicheMetier\AssocierMetierTypeFormAwareTrait; use Application\Form\FicheMetier\AssocierPosteFormAwareTrait; Loading Loading @@ -37,15 +36,6 @@ class FicheMetierController extends AbstractActionController use SpecificitePosteFormAwareTrait; use AjouterFicheTypeFormAwareTrait; public function indexAction() { $fichesMetiers = $this->getFicheMetierService()->getFichesMetiers(); return new ViewModel([ 'fichesMetiers' => $fichesMetiers, ]); } public function afficherAction() { $ficheId = $this->params()->fromRoute('id'); Loading @@ -64,28 +54,6 @@ class FicheMetierController extends AbstractActionController ]); } public function historiserAction() { $ficheId = $this->params()->fromRoute('id'); $fiche = $this->getFicheMetierService()->getFicheMetier($ficheId); if ($fiche === null) throw new RuntimeException("Aucune fiche ne porte l'identifiant [".$ficheId."]"); $this->getFicheMetierService()->historiser($fiche); $this->redirect()->toRoute('fiche-metier',[], [], true); } public function restaurerAction() { $ficheId = $this->params()->fromRoute('id'); $fiche = $this->getFicheMetierService()->getFicheMetier($ficheId); if ($fiche === null) throw new RuntimeException("Aucune fiche ne porte l'identifiant [".$ficheId."]"); $this->getFicheMetierService()->restaurer($fiche); $this->redirect()->toRoute('fiche-metier',[], [], true); } public function editerAction() { $libelle = 'Environnement du poste de travail dans l\'organisation'; Loading @@ -98,7 +66,7 @@ class FicheMetierController extends AbstractActionController { /** @var FicheMetierCreationForm $form */ $form = $this->getFicherMetierCreationForm(); $fiche = new FicheMetier(); $fiche = new FichePoste(); $form->bind($fiche); /** @var Request $request */ Loading