Commit 886e4db9 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Modifcation des menus

parent ec4a478e
Loading
Loading
Loading
Loading
+2 −2
Changes for docker-compose.yml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -2,8 +2,8 @@ version: '3'

services:
  sygal:
    image: registre.unicaen.fr:5000/sygal-image-php7.4
    container_name: sygal-container-php7.4
    image: registre.unicaen.fr:5000/sygal-image-php7.3
    container_name: sygal-container-php7.3
    environment:
      - http_proxy
      - https_proxy
+2 −2
Changes for module/Formation/config/others/index.config.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -52,13 +52,13 @@ return [
                        'label'    => 'Formations',
                        'route'    => 'formation',
                        'resource' => PrivilegeController::getResourceId(IndexController::class, 'index') ,
                        'order'    => 9998,
                        'order'    => 9997,
                    ],
                    'formation-doctorant' => [
                        'label'    => 'Mes formations',
                        'route'    => 'formation/index-doctorant',
                        'resource' => PrivilegeController::getResourceId(IndexController::class, 'index-doctorant') ,
                        'order'    => 9999,
                        'order'    => 9998,
                    ],
                    'formation-formateur' => [
                        'label'    => 'Mes formations',
+5 −5
Changes for module/Formation/src/Formation/Controller/IndexController.php: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -15,13 +15,12 @@ class IndexController extends AbstractController
{
    use EntityManagerAwareTrait;


    public function indexAction()
    public function indexAction() : ViewModel
    {
        return new ViewModel();
    }

    public function indexDoctorantAction()
    public function indexDoctorantAction() : ViewModel
    {
        /** @var Doctorant $doctorant */
        $doctorantId = $this->params()->fromRoute('doctorant');
@@ -60,14 +59,15 @@ class IndexController extends AbstractController
        ]);
    }

    public function indexFormateurAction()
    public function indexFormateurAction() : ViewModel
    {
        /** @var Individu $individu */
        $individuId = $this->params()->fromRoute('formateur');
        if ($individuId !== null) {
            $individu = $this->getEntityManager()->getRepository(Individu::class)->find($individuId);
        } else {
            $individu = null;
            $user = $this->userContextService->getIdentityDb();
            $individu = ($user)?$user->getIndividu():null;
        }

        if($individu) {
+2 −4
Changes for module/Formation/src/Formation/Controller/InscriptionController.php: 2 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -3,15 +3,13 @@
namespace Formation\Controller;

use Application\Controller\AbstractController;
use Doctorant\Entity\Db\Doctorant;
use Application\Entity\Db\Individu;
use Application\Service\Doctorant\DoctorantServiceAwareTrait;
use Application\Service\Etablissement\EtablissementServiceAwareTrait;
use Application\Service\File\FileServiceAwareTrait;
use Application\Service\Individu\IndividuServiceAwareTrait;
use Formation\Entity\Db\Etat;
use Doctorant\Entity\Db\Doctorant;
use Doctorant\Service\DoctorantServiceAwareTrait;
use Formation\Entity\Db\Inscription;
use Formation\Entity\Db\Formation;
use Formation\Entity\Db\Session;
use Formation\Service\Exporter\Attestation\AttestationExporter;
use Formation\Service\Exporter\Convocation\ConvocationExporter;
+2 −3
Changes for module/Formation/src/Formation/Controller/InscriptionControllerFactory.php: 2 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -2,12 +2,11 @@

namespace Formation\Controller;

use Application\Service\Doctorant\DoctorantService;
use Application\Service\Etablissement\EtablissementService;
use Application\Service\File\FileService;
use Application\Service\Individu\IndividuService;
use Doctorant\Service\DoctorantService;
use Doctrine\ORM\EntityManager;
use Formation\Entity\Db\Presence;
use Formation\Service\Inscription\InscriptionService;
use Formation\Service\Presence\PresenceService;
use Interop\Container\ContainerInterface;
@@ -19,7 +18,7 @@ class InscriptionControllerFactory {
     * @param ContainerInterface $container
     * @return InscriptionController
     */
    public function __invoke(ContainerInterface $container)
    public function __invoke(ContainerInterface $container) : InscriptionController
    {
        /**
         * @var EntityManager $entityManager