Loading module/Application/src/Application/Controller/RessourceRh/RessourceRhController.php +39 −21 Changes for module/Application/src/Application/Controller/RessourceRh/RessourceRhController.php: 39 added lines, 21 removed lines. Original line number Diff line number Diff line Loading @@ -10,14 +10,22 @@ use Application\Entity\Db\Fonction; use Application\Entity\Db\Grade; use Application\Entity\Db\Metier; use Application\Entity\Db\MetierFamille; use Application\Form\RessourceRh\AgentStatusFormAwareTrait; use Application\Form\RessourceRh\CorpsFormAwareTrait; use Application\Form\RessourceRh\CorrespondanceFormAwareTrait; use Application\Form\RessourceRh\DomaineForm; use Application\Form\RessourceRh\DomaineFormAwareTrait; use Application\Form\RessourceRh\FonctionForm; use Application\Form\RessourceRh\FonctionFormAwareTrait; use Application\Form\RessourceRh\GradeForm; use Application\Form\RessourceRh\GradeFormAwareTrait; use Application\Form\RessourceRh\MetierFamilleForm; use Application\Form\RessourceRh\MetierFamilleFormAwareTrait; use Application\Form\RessourceRh\MetierForm; use Application\Form\RessourceRh\AgentStatusForm; use Application\Form\RessourceRh\CorpsForm; use Application\Form\RessourceRh\CorrespondanceForm; use Application\Service\RessourceRh\MetierFormAwareTrait; use Application\Service\RessourceRh\RessourceRhServiceAwareTrait; use Zend\Http\Request; use Zend\Mvc\Controller\AbstractActionController; Loading @@ -25,7 +33,17 @@ use Zend\View\Model\JsonModel; use Zend\View\Model\ViewModel; class RessourceRhController extends AbstractActionController { /** Trait utilisés pour les services */ use RessourceRhServiceAwareTrait; /** Trait utilisés pour les formulaires */ use AgentStatusFormAwareTrait; use CorpsFormAwareTrait; use CorrespondanceFormAwareTrait; use DomaineFormAwareTrait; use FonctionFormAwareTrait; use GradeFormAwareTrait; use MetierFamilleFormAwareTrait; use MetierFormAwareTrait; public function indexAction() { Loading Loading @@ -57,7 +75,7 @@ class RessourceRhController extends AbstractActionController { $status = new AgentStatus(); /** @var AgentStatusForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(AgentStatusForm::class); $form = $this->getAgentStatusForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/agent-status/creer', [], [], true)); $form->bind($status); Loading Loading @@ -86,7 +104,7 @@ class RessourceRhController extends AbstractActionController { $status = $this->getRessourceRhService()->getAgentStatus($statusId); /** @var AgentStatusForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(AgentStatusForm::class); $form = $this->getAgentStatusForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/agent-status/modifier', [], [], true)); $form->bind($status); Loading Loading @@ -127,8 +145,8 @@ class RessourceRhController extends AbstractActionController { { $correspondance = new Correspondance(); /** @var AgentStatusForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(CorrespondanceForm::class); /** @var CorrespondanceForm $form */ $form = $this->getCorrespondanceForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/correspondance/creer', [], [], true)); $form->bind($correspondance); Loading Loading @@ -156,8 +174,8 @@ class RessourceRhController extends AbstractActionController { $correspondanceId = $this->params()->fromRoute('id'); $correspondance = $this->getRessourceRhService()->getCorrespondance($correspondanceId); /** @var AgentStatusForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(CorrespondanceForm::class); /** @var CorrespondanceForm $form */ $form = $this->getCorrespondanceForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/correspondance/modifier', [], [], true)); $form->bind($correspondance); Loading Loading @@ -199,7 +217,7 @@ class RessourceRhController extends AbstractActionController { $corps = new Corps(); /** @var CorpsForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(CorpsForm::class); $form = $this->getCorpsForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/corps/creer', [], [], true)); $form->bind($corps); Loading Loading @@ -228,7 +246,7 @@ class RessourceRhController extends AbstractActionController { $corps = $this->getRessourceRhService()->getCorps($corpsId); /** @var CorpsForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(CorpsForm::class); $form = $this->getCorpsForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/corps/modifier', [], [], true)); $form->bind($corps); Loading Loading @@ -269,8 +287,8 @@ class RessourceRhController extends AbstractActionController { { $metier = new Metier(); /** @var CorpsForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(MetierForm::class); /** @var MetierForm $form */ $form = $this->getMetierForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/metier/creer', [], [], true)); $form->bind($metier); Loading Loading @@ -299,7 +317,7 @@ class RessourceRhController extends AbstractActionController { $metier = $this->getRessourceRhService()->getMetier($metierId); /** @var MetierForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(MetierForm::class); $form = $this->getMetierForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/metier/modifier', [], [], true)); $form->bind($metier); Loading Loading @@ -340,8 +358,8 @@ class RessourceRhController extends AbstractActionController { { $famille = new MetierFamille(); /** @var CorpsForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(MetierFamilleForm::class); /** @var MetierFamilleForm $form */ $form = $this->getMetierFamilleForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/famille/creer', [], [], true)); $form->bind($famille); Loading Loading @@ -369,8 +387,8 @@ class RessourceRhController extends AbstractActionController { $familleId = $this->params()->fromRoute('id'); $famille = $this->getRessourceRhService()->getMetierFamille($familleId); /** @var MetierForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(MetierFamilleForm::class); /** @var MetierFamilleForm $form */ $form = $this->getMetierFamilleForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/famille/modifier', [], [], true)); $form->bind($famille); Loading Loading @@ -413,7 +431,7 @@ class RessourceRhController extends AbstractActionController { $domaine = new Domaine(); /** @var DomaineForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(DomaineForm::class); $form = $this->getDomaineForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/domaine/ajouter', [], [], true)); $form->bind($domaine); Loading Loading @@ -443,7 +461,7 @@ class RessourceRhController extends AbstractActionController { $domaine = $this->getRessourceRhService()->getDomaine($domaineId); /** @var DomaineForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(DomaineForm::class); $form = $this->getDomaineForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/domaine/modifier', ['domaine' => $domaine->getId()], [], true)); $form->bind($domaine); Loading Loading @@ -487,7 +505,7 @@ class RessourceRhController extends AbstractActionController { $fonction = new Fonction(); /** @var FonctionForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(FonctionForm::class); $form = $this->getFonctionForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/fonction/ajouter', [], [], true)); $form->bind($fonction); Loading Loading @@ -517,7 +535,7 @@ class RessourceRhController extends AbstractActionController { $fonction = $this->getRessourceRhService()->getFonction($fonctionId); /** @var FonctionForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(FonctionForm::class); $form = $this->getFonctionForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/fonction/modifier', ['fonction' => $fonction->getId()], [], true)); $form->bind($fonction); Loading Loading @@ -561,7 +579,7 @@ class RessourceRhController extends AbstractActionController { $grade = new Grade(); /** @var GradeForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(GradeForm::class); $form = $this->getGradeForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/grade/ajouter', [], [], true)); $form->bind($grade); Loading Loading @@ -591,7 +609,7 @@ class RessourceRhController extends AbstractActionController { $grade = $this->getRessourceRhService()->getGrade($gradeId); /** @var GradeForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(GradeForm::class); $form = $this->getGradeForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/grade/modifier', ['grade' => $grade->getId()], [], true)); $form->bind($grade); Loading module/Application/src/Application/Controller/RessourceRh/RessourceRhControllerFactory.php +39 −2 Changes for module/Application/src/Application/Controller/RessourceRh/RessourceRhControllerFactory.php: 39 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -2,21 +2,58 @@ namespace Application\Controller\RessourceRh; use Application\Form\RessourceRh\AgentStatusForm; use Application\Form\RessourceRh\CorpsForm; use Application\Form\RessourceRh\CorrespondanceForm; use Application\Form\RessourceRh\DomaineForm; use Application\Form\RessourceRh\FonctionForm; use Application\Form\RessourceRh\GradeForm; use Application\Form\RessourceRh\MetierFamilleForm; use Application\Form\RessourceRh\MetierForm; use Application\Service\RessourceRh\RessourceRhService; use Zend\Mvc\Controller\ControllerManager; class RessourceRhControllerFactory { public function __invoke(ControllerManager $controllerManager) public function __invoke(ControllerManager $manager) { /** * @var RessourceRhService $ressourceService */ $ressourceService = $controllerManager->getServiceLocator()->get(RessourceRhService::class); $ressourceService = $manager->getServiceLocator()->get(RessourceRhService::class); /** * @var AgentStatusForm $agentStatusForm * @var CorpsForm $corpsForm * @var CorrespondanceForm $correspondanceForm * @var DomaineForm $domaineForm * @var FonctionForm $fonctionForm * @var GradeForm $gradeForm * @var MetierFamilleForm $metierFamilleForm * @var MetierForm $metierForm */ $agentStatusForm = $manager->getServiceLocator()->get('FormElementManager')->get(AgentStatusForm::class); $corpsForm = $manager->getServiceLocator()->get('FormElementManager')->get(CorpsForm::class); $correspondanceForm = $manager->getServiceLocator()->get('FormElementManager')->get(CorrespondanceForm::class); $domaineForm = $manager->getServiceLocator()->get('FormElementManager')->get(DomaineForm::class); $fonctionForm = $manager->getServiceLocator()->get('FormElementManager')->get(FonctionForm::class); $gradeForm = $manager->getServiceLocator()->get('FormElementManager')->get(GradeForm::class); $metierFamilleForm = $manager->getServiceLocator()->get('FormElementManager')->get(MetierFamilleForm::class); $metierForm = $manager->getServiceLocator()->get('FormElementManager')->get(MetierForm::class); /** @var RessourceRhController $controller */ $controller = new RessourceRhController(); $controller->setRessourceRhService($ressourceService); $controller->setAgentStatusForm($agentStatusForm); $controller->setCorpsForm($corpsForm); $controller->setCorrespondanceForm($correspondanceForm); $controller->setDomaineForm($domaineForm); $controller->setFonctionForm($fonctionForm); $controller->setGradeForm($gradeForm); $controller->setMetierFamilleForm($metierFamilleForm); $controller->setMetierForm($metierForm); return $controller; } Loading module/Application/src/Application/Form/RessourceRh/AgentStatusFormAwareTrait.php +28 Changes for module/Application/src/Application/Form/RessourceRh/AgentStatusFormAwareTrait.php: 28 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Form\RessourceRh; trait AgentStatusFormAwareTrait { /** @var AgentStatusForm $agentStatusForm */ private $agentStatusForm; /** * @return AgentStatusForm */ public function getAgentStatusForm() { return $this->agentStatusForm; } /** * @param AgentStatusForm $agentStatusForm * @return AgentStatusForm */ public function setAgentStatusForm($agentStatusForm) { $this->agentStatusForm = $agentStatusForm; return $this->agentStatusForm; } } No newline at end of file module/Application/src/Application/Form/RessourceRh/CorpsFormAwareTrait.php +29 Changes for module/Application/src/Application/Form/RessourceRh/CorpsFormAwareTrait.php: 29 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Form\RessourceRh; trait CorpsFormAwareTrait { /** @var CorpsForm $corpsForm */ private $corpsForm; /** * @return CorpsForm */ public function getCorpsForm() { return $this->corpsForm; } /** * @param CorpsForm $corpsForm * @return CorpsForm */ public function setCorpsForm($corpsForm) { $this->corpsForm = $corpsForm; return $this->corpsForm; } } No newline at end of file module/Application/src/Application/Form/RessourceRh/CorrespondanceFormAwareTrait.php +29 Changes for module/Application/src/Application/Form/RessourceRh/CorrespondanceFormAwareTrait.php: 29 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Form\RessourceRh; trait CorrespondanceFormAwareTrait { /** @var CorrespondanceForm $correspondanceForm */ private $correspondanceForm; /** * @return CorrespondanceForm */ public function getCorrespondanceForm() { return $this->correspondanceForm; } /** * @param CorrespondanceForm $correspondanceForm * @return CorrespondanceForm */ public function setCorrespondanceForm($correspondanceForm) { $this->correspondanceForm = $correspondanceForm; return $this->correspondanceForm; } } No newline at end of file Loading
module/Application/src/Application/Controller/RessourceRh/RessourceRhController.php +39 −21 Changes for module/Application/src/Application/Controller/RessourceRh/RessourceRhController.php: 39 added lines, 21 removed lines. Original line number Diff line number Diff line Loading @@ -10,14 +10,22 @@ use Application\Entity\Db\Fonction; use Application\Entity\Db\Grade; use Application\Entity\Db\Metier; use Application\Entity\Db\MetierFamille; use Application\Form\RessourceRh\AgentStatusFormAwareTrait; use Application\Form\RessourceRh\CorpsFormAwareTrait; use Application\Form\RessourceRh\CorrespondanceFormAwareTrait; use Application\Form\RessourceRh\DomaineForm; use Application\Form\RessourceRh\DomaineFormAwareTrait; use Application\Form\RessourceRh\FonctionForm; use Application\Form\RessourceRh\FonctionFormAwareTrait; use Application\Form\RessourceRh\GradeForm; use Application\Form\RessourceRh\GradeFormAwareTrait; use Application\Form\RessourceRh\MetierFamilleForm; use Application\Form\RessourceRh\MetierFamilleFormAwareTrait; use Application\Form\RessourceRh\MetierForm; use Application\Form\RessourceRh\AgentStatusForm; use Application\Form\RessourceRh\CorpsForm; use Application\Form\RessourceRh\CorrespondanceForm; use Application\Service\RessourceRh\MetierFormAwareTrait; use Application\Service\RessourceRh\RessourceRhServiceAwareTrait; use Zend\Http\Request; use Zend\Mvc\Controller\AbstractActionController; Loading @@ -25,7 +33,17 @@ use Zend\View\Model\JsonModel; use Zend\View\Model\ViewModel; class RessourceRhController extends AbstractActionController { /** Trait utilisés pour les services */ use RessourceRhServiceAwareTrait; /** Trait utilisés pour les formulaires */ use AgentStatusFormAwareTrait; use CorpsFormAwareTrait; use CorrespondanceFormAwareTrait; use DomaineFormAwareTrait; use FonctionFormAwareTrait; use GradeFormAwareTrait; use MetierFamilleFormAwareTrait; use MetierFormAwareTrait; public function indexAction() { Loading Loading @@ -57,7 +75,7 @@ class RessourceRhController extends AbstractActionController { $status = new AgentStatus(); /** @var AgentStatusForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(AgentStatusForm::class); $form = $this->getAgentStatusForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/agent-status/creer', [], [], true)); $form->bind($status); Loading Loading @@ -86,7 +104,7 @@ class RessourceRhController extends AbstractActionController { $status = $this->getRessourceRhService()->getAgentStatus($statusId); /** @var AgentStatusForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(AgentStatusForm::class); $form = $this->getAgentStatusForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/agent-status/modifier', [], [], true)); $form->bind($status); Loading Loading @@ -127,8 +145,8 @@ class RessourceRhController extends AbstractActionController { { $correspondance = new Correspondance(); /** @var AgentStatusForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(CorrespondanceForm::class); /** @var CorrespondanceForm $form */ $form = $this->getCorrespondanceForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/correspondance/creer', [], [], true)); $form->bind($correspondance); Loading Loading @@ -156,8 +174,8 @@ class RessourceRhController extends AbstractActionController { $correspondanceId = $this->params()->fromRoute('id'); $correspondance = $this->getRessourceRhService()->getCorrespondance($correspondanceId); /** @var AgentStatusForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(CorrespondanceForm::class); /** @var CorrespondanceForm $form */ $form = $this->getCorrespondanceForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/correspondance/modifier', [], [], true)); $form->bind($correspondance); Loading Loading @@ -199,7 +217,7 @@ class RessourceRhController extends AbstractActionController { $corps = new Corps(); /** @var CorpsForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(CorpsForm::class); $form = $this->getCorpsForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/corps/creer', [], [], true)); $form->bind($corps); Loading Loading @@ -228,7 +246,7 @@ class RessourceRhController extends AbstractActionController { $corps = $this->getRessourceRhService()->getCorps($corpsId); /** @var CorpsForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(CorpsForm::class); $form = $this->getCorpsForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/corps/modifier', [], [], true)); $form->bind($corps); Loading Loading @@ -269,8 +287,8 @@ class RessourceRhController extends AbstractActionController { { $metier = new Metier(); /** @var CorpsForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(MetierForm::class); /** @var MetierForm $form */ $form = $this->getMetierForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/metier/creer', [], [], true)); $form->bind($metier); Loading Loading @@ -299,7 +317,7 @@ class RessourceRhController extends AbstractActionController { $metier = $this->getRessourceRhService()->getMetier($metierId); /** @var MetierForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(MetierForm::class); $form = $this->getMetierForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/metier/modifier', [], [], true)); $form->bind($metier); Loading Loading @@ -340,8 +358,8 @@ class RessourceRhController extends AbstractActionController { { $famille = new MetierFamille(); /** @var CorpsForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(MetierFamilleForm::class); /** @var MetierFamilleForm $form */ $form = $this->getMetierFamilleForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/famille/creer', [], [], true)); $form->bind($famille); Loading Loading @@ -369,8 +387,8 @@ class RessourceRhController extends AbstractActionController { $familleId = $this->params()->fromRoute('id'); $famille = $this->getRessourceRhService()->getMetierFamille($familleId); /** @var MetierForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(MetierFamilleForm::class); /** @var MetierFamilleForm $form */ $form = $this->getMetierFamilleForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/famille/modifier', [], [], true)); $form->bind($famille); Loading Loading @@ -413,7 +431,7 @@ class RessourceRhController extends AbstractActionController { $domaine = new Domaine(); /** @var DomaineForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(DomaineForm::class); $form = $this->getDomaineForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/domaine/ajouter', [], [], true)); $form->bind($domaine); Loading Loading @@ -443,7 +461,7 @@ class RessourceRhController extends AbstractActionController { $domaine = $this->getRessourceRhService()->getDomaine($domaineId); /** @var DomaineForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(DomaineForm::class); $form = $this->getDomaineForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/domaine/modifier', ['domaine' => $domaine->getId()], [], true)); $form->bind($domaine); Loading Loading @@ -487,7 +505,7 @@ class RessourceRhController extends AbstractActionController { $fonction = new Fonction(); /** @var FonctionForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(FonctionForm::class); $form = $this->getFonctionForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/fonction/ajouter', [], [], true)); $form->bind($fonction); Loading Loading @@ -517,7 +535,7 @@ class RessourceRhController extends AbstractActionController { $fonction = $this->getRessourceRhService()->getFonction($fonctionId); /** @var FonctionForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(FonctionForm::class); $form = $this->getFonctionForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/fonction/modifier', ['fonction' => $fonction->getId()], [], true)); $form->bind($fonction); Loading Loading @@ -561,7 +579,7 @@ class RessourceRhController extends AbstractActionController { $grade = new Grade(); /** @var GradeForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(GradeForm::class); $form = $this->getGradeForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/grade/ajouter', [], [], true)); $form->bind($grade); Loading Loading @@ -591,7 +609,7 @@ class RessourceRhController extends AbstractActionController { $grade = $this->getRessourceRhService()->getGrade($gradeId); /** @var GradeForm $form */ $form = $this->getServiceLocator()->get('FormElementManager')->get(GradeForm::class); $form = $this->getGradeForm(); $form->setAttribute('action', $this->url()->fromRoute('ressource-rh/grade/modifier', ['grade' => $grade->getId()], [], true)); $form->bind($grade); Loading
module/Application/src/Application/Controller/RessourceRh/RessourceRhControllerFactory.php +39 −2 Changes for module/Application/src/Application/Controller/RessourceRh/RessourceRhControllerFactory.php: 39 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -2,21 +2,58 @@ namespace Application\Controller\RessourceRh; use Application\Form\RessourceRh\AgentStatusForm; use Application\Form\RessourceRh\CorpsForm; use Application\Form\RessourceRh\CorrespondanceForm; use Application\Form\RessourceRh\DomaineForm; use Application\Form\RessourceRh\FonctionForm; use Application\Form\RessourceRh\GradeForm; use Application\Form\RessourceRh\MetierFamilleForm; use Application\Form\RessourceRh\MetierForm; use Application\Service\RessourceRh\RessourceRhService; use Zend\Mvc\Controller\ControllerManager; class RessourceRhControllerFactory { public function __invoke(ControllerManager $controllerManager) public function __invoke(ControllerManager $manager) { /** * @var RessourceRhService $ressourceService */ $ressourceService = $controllerManager->getServiceLocator()->get(RessourceRhService::class); $ressourceService = $manager->getServiceLocator()->get(RessourceRhService::class); /** * @var AgentStatusForm $agentStatusForm * @var CorpsForm $corpsForm * @var CorrespondanceForm $correspondanceForm * @var DomaineForm $domaineForm * @var FonctionForm $fonctionForm * @var GradeForm $gradeForm * @var MetierFamilleForm $metierFamilleForm * @var MetierForm $metierForm */ $agentStatusForm = $manager->getServiceLocator()->get('FormElementManager')->get(AgentStatusForm::class); $corpsForm = $manager->getServiceLocator()->get('FormElementManager')->get(CorpsForm::class); $correspondanceForm = $manager->getServiceLocator()->get('FormElementManager')->get(CorrespondanceForm::class); $domaineForm = $manager->getServiceLocator()->get('FormElementManager')->get(DomaineForm::class); $fonctionForm = $manager->getServiceLocator()->get('FormElementManager')->get(FonctionForm::class); $gradeForm = $manager->getServiceLocator()->get('FormElementManager')->get(GradeForm::class); $metierFamilleForm = $manager->getServiceLocator()->get('FormElementManager')->get(MetierFamilleForm::class); $metierForm = $manager->getServiceLocator()->get('FormElementManager')->get(MetierForm::class); /** @var RessourceRhController $controller */ $controller = new RessourceRhController(); $controller->setRessourceRhService($ressourceService); $controller->setAgentStatusForm($agentStatusForm); $controller->setCorpsForm($corpsForm); $controller->setCorrespondanceForm($correspondanceForm); $controller->setDomaineForm($domaineForm); $controller->setFonctionForm($fonctionForm); $controller->setGradeForm($gradeForm); $controller->setMetierFamilleForm($metierFamilleForm); $controller->setMetierForm($metierForm); return $controller; } Loading
module/Application/src/Application/Form/RessourceRh/AgentStatusFormAwareTrait.php +28 Changes for module/Application/src/Application/Form/RessourceRh/AgentStatusFormAwareTrait.php: 28 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Form\RessourceRh; trait AgentStatusFormAwareTrait { /** @var AgentStatusForm $agentStatusForm */ private $agentStatusForm; /** * @return AgentStatusForm */ public function getAgentStatusForm() { return $this->agentStatusForm; } /** * @param AgentStatusForm $agentStatusForm * @return AgentStatusForm */ public function setAgentStatusForm($agentStatusForm) { $this->agentStatusForm = $agentStatusForm; return $this->agentStatusForm; } } No newline at end of file
module/Application/src/Application/Form/RessourceRh/CorpsFormAwareTrait.php +29 Changes for module/Application/src/Application/Form/RessourceRh/CorpsFormAwareTrait.php: 29 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Form\RessourceRh; trait CorpsFormAwareTrait { /** @var CorpsForm $corpsForm */ private $corpsForm; /** * @return CorpsForm */ public function getCorpsForm() { return $this->corpsForm; } /** * @param CorpsForm $corpsForm * @return CorpsForm */ public function setCorpsForm($corpsForm) { $this->corpsForm = $corpsForm; return $this->corpsForm; } } No newline at end of file
module/Application/src/Application/Form/RessourceRh/CorrespondanceFormAwareTrait.php +29 Changes for module/Application/src/Application/Form/RessourceRh/CorrespondanceFormAwareTrait.php: 29 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Form\RessourceRh; trait CorrespondanceFormAwareTrait { /** @var CorrespondanceForm $correspondanceForm */ private $correspondanceForm; /** * @return CorrespondanceForm */ public function getCorrespondanceForm() { return $this->correspondanceForm; } /** * @param CorrespondanceForm $correspondanceForm * @return CorrespondanceForm */ public function setCorrespondanceForm($correspondanceForm) { $this->correspondanceForm = $correspondanceForm; return $this->correspondanceForm; } } No newline at end of file