Loading module/Application/config/others/co-encadrant.config.php +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ return [ 'historique' => [ 'type' => Segment::class, 'options' => [ 'route' => '/historique/:co-encadrant', 'route' => '/historique[/:co-encadrant]', 'defaults' => [ 'controller' => CoEncadrantController::class, 'action' => 'historique', Loading module/Application/src/Application/Controller/CoEncadrantController.php +4 −0 Original line number Diff line number Diff line Loading @@ -134,6 +134,10 @@ class CoEncadrantController extends AbstractActionController { public function historiqueAction() { $coencadrant = $this->getCoEncadrantService()->getRequestedCoEncadrant($this); if ($coencadrant === null) { return $this->redirect()->toRoute('co-encadrant', [], [], true); } $theses = $this->getTheseService()->getRepository()->fetchThesesByCoEncadrant($coencadrant->getIndividu()); $encours = []; $closes = []; Loading module/Application/src/Application/Service/CoEncadrant/CoEncadrantService.php +2 −2 Original line number Diff line number Diff line Loading @@ -63,9 +63,9 @@ class CoEncadrantService { /** * @param AbstractActionController $controller * @param string $param * @return Acteur * @return ?Acteur */ public function getRequestedCoEncadrant(AbstractActionController $controller, string $param = 'co-encadrant') public function getRequestedCoEncadrant(AbstractActionController $controller, string $param = 'co-encadrant') : ?Acteur { $id = $controller->params()->fromRoute($param); $result = $this->getCoEncadrant($id); Loading Loading
module/Application/config/others/co-encadrant.config.php +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ return [ 'historique' => [ 'type' => Segment::class, 'options' => [ 'route' => '/historique/:co-encadrant', 'route' => '/historique[/:co-encadrant]', 'defaults' => [ 'controller' => CoEncadrantController::class, 'action' => 'historique', Loading
module/Application/src/Application/Controller/CoEncadrantController.php +4 −0 Original line number Diff line number Diff line Loading @@ -134,6 +134,10 @@ class CoEncadrantController extends AbstractActionController { public function historiqueAction() { $coencadrant = $this->getCoEncadrantService()->getRequestedCoEncadrant($this); if ($coencadrant === null) { return $this->redirect()->toRoute('co-encadrant', [], [], true); } $theses = $this->getTheseService()->getRepository()->fetchThesesByCoEncadrant($coencadrant->getIndividu()); $encours = []; $closes = []; Loading
module/Application/src/Application/Service/CoEncadrant/CoEncadrantService.php +2 −2 Original line number Diff line number Diff line Loading @@ -63,9 +63,9 @@ class CoEncadrantService { /** * @param AbstractActionController $controller * @param string $param * @return Acteur * @return ?Acteur */ public function getRequestedCoEncadrant(AbstractActionController $controller, string $param = 'co-encadrant') public function getRequestedCoEncadrant(AbstractActionController $controller, string $param = 'co-encadrant') : ?Acteur { $id = $controller->params()->fromRoute($param); $result = $this->getCoEncadrant($id); Loading