Loading module/Application/src/Application/Controller/AgentController.php +13 −2 Changes for module/Application/src/Application/Controller/AgentController.php: 13 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -2,16 +2,20 @@ namespace Application\Controller; use Application\Entity\Db\AgentAutorite; use Application\Entity\Db\AgentSuperieur; use Application\Form\AgentAccompagnement\AgentAccompagnementFormAwareTrait; use Application\Service\Agent\AgentServiceAwareTrait; use Application\Service\AgentAccompagnement\AgentAccompagnementServiceAwareTrait; use Application\Service\AgentAffectation\AgentAffectationServiceAwareTrait; use Application\Service\AgentAutorite\AgentAutoriteServiceAwareTrait; use Application\Service\AgentGrade\AgentGradeServiceAwareTrait; use Application\Service\AgentMissionSpecifique\AgentMissionSpecifiqueServiceAwareTrait; use Application\Service\AgentPPP\AgentPPPServiceAwareTrait; use Application\Service\AgentQuotite\AgentQuotiteServiceAwareTrait; use Application\Service\AgentStageObservation\AgentStageObservationServiceAwareTrait; use Application\Service\AgentStatut\AgentStatutServiceAwareTrait; use Application\Service\AgentSuperieur\AgentSuperieurServiceAwareTrait; use Application\Service\AgentTutorat\AgentTutoratServiceAwareTrait; use Application\Service\FichePoste\FichePosteServiceAwareTrait; use Application\Service\ParcoursDeFormation\ParcoursDeFormationServiceAwareTrait; Loading Loading @@ -56,6 +60,9 @@ use UnicaenValidation\Service\ValidationType\ValidationTypeServiceAwareTrait; class AgentController extends AbstractActionController { use AgentServiceAwareTrait; use AgentAutoriteServiceAwareTrait; use AgentSuperieurServiceAwareTrait; use AgentServiceAwareTrait; use AgentAffectationServiceAwareTrait; use AgentGradeServiceAwareTrait; Loading Loading @@ -135,8 +142,12 @@ class AgentController extends AbstractActionController $agentGrades = $this->getAgentGradeService()->getAgentGradesByAgent($agent); //Récupération des supérieures et autorités $superieures = $this->getAgentService()->computeSuperieures($agent); $autorites = $this->getAgentService()->computeAutorites($agent, $superieures); $superieures = array_map( function (AgentSuperieur $a) { return $a->getSuperieur(); }, $this->getAgentSuperieurService()->getAgentsSuperieursByAgent($agent)); $autorites = array_map( function (AgentAutorite $a) { return $a->getAutorite(); }, $this->getAgentAutoriteService()->getAgentsAutoritesByAgent($agent)); $fichespostes = $this->getFichePosteService()->getFichesPostesByAgent($agent); Loading module/Application/src/Application/Controller/AgentControllerFactory.php +9 Changes for module/Application/src/Application/Controller/AgentControllerFactory.php: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -5,12 +5,14 @@ namespace Application\Controller; use Application\Service\Agent\AgentService; use Application\Service\AgentAccompagnement\AgentAccompagnementService; use Application\Service\AgentAffectation\AgentAffectationService; use Application\Service\AgentAutorite\AgentAutoriteService; use Application\Service\AgentGrade\AgentGradeService; use Application\Service\AgentMissionSpecifique\AgentMissionSpecifiqueService; use Application\Service\AgentPPP\AgentPPPService; use Application\Service\AgentQuotite\AgentQuotiteService; use Application\Service\AgentStageObservation\AgentStageObservationService; use Application\Service\AgentStatut\AgentStatutService; use Application\Service\AgentSuperieur\AgentSuperieurService; use Application\Service\AgentTutorat\AgentTutoratService; use Application\Service\FichePoste\FichePosteService; use Application\Service\ParcoursDeFormation\ParcoursDeFormationService; Loading Loading @@ -74,6 +76,8 @@ class AgentControllerFactory { /** * @var AgentService $agentService * @var AgentAutoriteService $agentAutoriteService * @var AgentSuperieurService $agentSuperieurService * @var AgentAffectationService $agentAffectationService * @var AgentGradeService $agentGradeService * @var AgentMissionSpecifiqueService $agentMissionSpecifiqueService Loading @@ -84,6 +88,8 @@ class AgentControllerFactory { * @var UserService $userService */ $agentService = $container->get(AgentService::class); $agentAutoriteService = $container->get(AgentAutoriteService::class); $agentSuperieurService = $container->get(AgentSuperieurService::class); $agentAffectationService = $container->get(AgentAffectationService::class); $agentGradeService = $container->get(AgentGradeService::class); $agentMissionSpecifiqueService = $container->get(AgentMissionSpecifiqueService::class); Loading Loading @@ -125,6 +131,9 @@ class AgentControllerFactory { /** @var AgentController $controller */ $controller = new AgentController(); $controller->setAgentService($agentService); $controller->setAgentAutoriteService($agentAutoriteService); $controller->setAgentSuperieurService($agentSuperieurService); $controller->setAgentService($agentService); $controller->setAgentAffectationService($agentAffectationService); $controller->setAgentGradeService($agentGradeService); Loading Loading
module/Application/src/Application/Controller/AgentController.php +13 −2 Changes for module/Application/src/Application/Controller/AgentController.php: 13 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -2,16 +2,20 @@ namespace Application\Controller; use Application\Entity\Db\AgentAutorite; use Application\Entity\Db\AgentSuperieur; use Application\Form\AgentAccompagnement\AgentAccompagnementFormAwareTrait; use Application\Service\Agent\AgentServiceAwareTrait; use Application\Service\AgentAccompagnement\AgentAccompagnementServiceAwareTrait; use Application\Service\AgentAffectation\AgentAffectationServiceAwareTrait; use Application\Service\AgentAutorite\AgentAutoriteServiceAwareTrait; use Application\Service\AgentGrade\AgentGradeServiceAwareTrait; use Application\Service\AgentMissionSpecifique\AgentMissionSpecifiqueServiceAwareTrait; use Application\Service\AgentPPP\AgentPPPServiceAwareTrait; use Application\Service\AgentQuotite\AgentQuotiteServiceAwareTrait; use Application\Service\AgentStageObservation\AgentStageObservationServiceAwareTrait; use Application\Service\AgentStatut\AgentStatutServiceAwareTrait; use Application\Service\AgentSuperieur\AgentSuperieurServiceAwareTrait; use Application\Service\AgentTutorat\AgentTutoratServiceAwareTrait; use Application\Service\FichePoste\FichePosteServiceAwareTrait; use Application\Service\ParcoursDeFormation\ParcoursDeFormationServiceAwareTrait; Loading Loading @@ -56,6 +60,9 @@ use UnicaenValidation\Service\ValidationType\ValidationTypeServiceAwareTrait; class AgentController extends AbstractActionController { use AgentServiceAwareTrait; use AgentAutoriteServiceAwareTrait; use AgentSuperieurServiceAwareTrait; use AgentServiceAwareTrait; use AgentAffectationServiceAwareTrait; use AgentGradeServiceAwareTrait; Loading Loading @@ -135,8 +142,12 @@ class AgentController extends AbstractActionController $agentGrades = $this->getAgentGradeService()->getAgentGradesByAgent($agent); //Récupération des supérieures et autorités $superieures = $this->getAgentService()->computeSuperieures($agent); $autorites = $this->getAgentService()->computeAutorites($agent, $superieures); $superieures = array_map( function (AgentSuperieur $a) { return $a->getSuperieur(); }, $this->getAgentSuperieurService()->getAgentsSuperieursByAgent($agent)); $autorites = array_map( function (AgentAutorite $a) { return $a->getAutorite(); }, $this->getAgentAutoriteService()->getAgentsAutoritesByAgent($agent)); $fichespostes = $this->getFichePosteService()->getFichesPostesByAgent($agent); Loading
module/Application/src/Application/Controller/AgentControllerFactory.php +9 Changes for module/Application/src/Application/Controller/AgentControllerFactory.php: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -5,12 +5,14 @@ namespace Application\Controller; use Application\Service\Agent\AgentService; use Application\Service\AgentAccompagnement\AgentAccompagnementService; use Application\Service\AgentAffectation\AgentAffectationService; use Application\Service\AgentAutorite\AgentAutoriteService; use Application\Service\AgentGrade\AgentGradeService; use Application\Service\AgentMissionSpecifique\AgentMissionSpecifiqueService; use Application\Service\AgentPPP\AgentPPPService; use Application\Service\AgentQuotite\AgentQuotiteService; use Application\Service\AgentStageObservation\AgentStageObservationService; use Application\Service\AgentStatut\AgentStatutService; use Application\Service\AgentSuperieur\AgentSuperieurService; use Application\Service\AgentTutorat\AgentTutoratService; use Application\Service\FichePoste\FichePosteService; use Application\Service\ParcoursDeFormation\ParcoursDeFormationService; Loading Loading @@ -74,6 +76,8 @@ class AgentControllerFactory { /** * @var AgentService $agentService * @var AgentAutoriteService $agentAutoriteService * @var AgentSuperieurService $agentSuperieurService * @var AgentAffectationService $agentAffectationService * @var AgentGradeService $agentGradeService * @var AgentMissionSpecifiqueService $agentMissionSpecifiqueService Loading @@ -84,6 +88,8 @@ class AgentControllerFactory { * @var UserService $userService */ $agentService = $container->get(AgentService::class); $agentAutoriteService = $container->get(AgentAutoriteService::class); $agentSuperieurService = $container->get(AgentSuperieurService::class); $agentAffectationService = $container->get(AgentAffectationService::class); $agentGradeService = $container->get(AgentGradeService::class); $agentMissionSpecifiqueService = $container->get(AgentMissionSpecifiqueService::class); Loading Loading @@ -125,6 +131,9 @@ class AgentControllerFactory { /** @var AgentController $controller */ $controller = new AgentController(); $controller->setAgentService($agentService); $controller->setAgentAutoriteService($agentAutoriteService); $controller->setAgentSuperieurService($agentSuperieurService); $controller->setAgentService($agentService); $controller->setAgentAffectationService($agentAffectationService); $controller->setAgentGradeService($agentGradeService); Loading