Loading error.log 0 → 100644 +6 −0 Changes for error.log: 6 added lines, 0 removed lines. Original line number Diff line number Diff line 1 /var/www/html/sygal-versions/sygal-20180313-123330/vendor/unicaen/app/src/UnicaenApp/Exporter/Pdf.php(371): UnicaenApp\\Exporter\\Pdf->getMpdf()\n 2 /var/www/html/sygal-versions/sygal-20180313-123330/vendor/unicaen/app/src/UnicaenApp/Exporter/Pdf.php(348): UnicaenApp\\Exporter\\Pdf->_addCss()\n 3 /var/www/html/sygal-versions/sygal-20180313-123330/vendor/unicaen/app/src/UnicaenApp/Exporter/Pdf.php(287): UnicaenApp\\Exporter\\Pdf->_generate()\n 4 /var/www/html/sygal-versions/sygal-20180313-123330/module/Application/src/Application/Service/These/PageDeGarde/PageDeCouverturePdfExporter.php(34): UnicaenApp\\Exporter\\Pdf->export('export.pdf', 'I', NULL)\n 5 /var/www/html/sygal-versions/sygal-201803 in /var/www/html/sygal-versions/sygal-20180313-123330/vendor/mpdf/mpdf/mpdf.php on line 1232, referer: https://sygal-pp.unicaen.fr/these/identite/28072 module/Application/src/Application/Authentication/Storage/AppStorage.php +37 −77 Changes for module/Application/src/Application/Authentication/Storage/AppStorage.php: 37 added lines, 77 removed lines. Original line number Diff line number Diff line Loading @@ -4,11 +4,11 @@ namespace Application\Authentication\Storage; use Application\Authentication\Adapter\ShibUser; use Application\Entity\Db\Doctorant; use Application\Entity\Db\EcoleDoctoraleIndividu; use Application\Entity\Db\UniteRechercheIndividu; use Application\Entity\Db\IndividuRole; use Application\Entity\Db\Utilisateur; use Application\Service\Doctorant\DoctorantServiceAwareTrait; use Application\Service\EcoleDoctorale\EcoleDoctoraleServiceAwareTrait; use Application\Service\Role\RoleServiceAwareTrait; use Application\Service\UniteRecherche\UniteRechercheServiceAwareTrait; use Application\Service\Utilisateur\UtilisateurServiceAwareTrait; use Doctrine\ORM\NonUniqueResultException; Loading @@ -25,12 +25,8 @@ use Zend\Authentication\Exception\ExceptionInterface; * - entité Doctorant si l'utilisateur authentifié est trouvé parmi les thésards, * - null sinon. * * Valeur associée à la clé KEY_ECOLE_DOCTORALE_INDIVIDU : * - entités EcoleDoctoraleIndividu si l'utilisateur authentifié est trouvé dans EcoleDoctoraleIndividu, * - [] sinon. * * Valeur associée à la clé KEY_UNITE_RECHERCHE_INDIVIDU : * - entités UniteRechercheIndividu si l'utilisateur authentifié est trouvé dans UniteRechercheIndividu, * Valeur associée à la clé KEY_STRUCTURE_ROLE_INDIVIDU : * - entités RoleServiceIndividu si l'utilisateur authentifié est trouvé dans IndividuRole, * - [] sinon. * * @author Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr> Loading @@ -39,13 +35,11 @@ class AppStorage implements ChainableStorage { use UtilisateurServiceAwareTrait; use DoctorantServiceAwareTrait; use EcoleDoctoraleServiceAwareTrait; use UniteRechercheServiceAwareTrait; use RoleServiceAwareTrait; const KEY_DB_UTILSATEUR = 'db'; const KEY_DOCTORANT = 'doctorant'; const KEY_ECOLE_DOCTORALE_INDIVIDU = 'ecoleDoctoraleIndividu'; const KEY_UNITE_RECHERCHE_INDIVIDU = 'uniteRechercheIndividu'; const KEY_STRUCTURE_ROLE_INDIVIDU = 'structureIndividu'; /** * @var mixed Loading @@ -68,14 +62,9 @@ class AppStorage implements ChainableStorage protected $doctorant; /** * @var EcoleDoctoraleIndividu[] */ protected $ecoleDoctoraleIndividu; /** * @var UniteRechercheIndividu[] * @var IndividuRole[] */ protected $uniteRechercheIndividu; protected $structureIndividu; /** * @param ChainEvent $e Loading Loading @@ -103,15 +92,10 @@ class AppStorage implements ChainableStorage */ $this->addDoctorantContents($e); // /** // * Collecte des données au cas où l'utilisateur connecté est trouvé dans la table EcoleDoctoraleIndividu. // */ // $this->addEcoleDoctoraleIndividuContents($e); // // /** // * Collecte des données au cas où l'utilisateur connecté est trouvé dans la table UniteRechercheIndividu. // */ // $this->addUniteRechercheIndividuContents($e); /** * Collecte des données au cas où l'utilisateur connecté est trouvé dans la table EcoleDoctoraleIndividu. */ $this->addStructureRoleContents($e); } protected function addDbUtilisateurContents(ChainEvent $e) Loading Loading @@ -184,55 +168,31 @@ class AppStorage implements ChainableStorage return $this->doctorant; } // private function addEcoleDoctoraleIndividuContents(ChainEvent $e) // { // try { // $e->addContents(self::KEY_ECOLE_DOCTORALE_INDIVIDU, $this->fetchEcoleDoctoraleIndividu()); // } catch (ExceptionInterface $e) { // throw new RuntimeException("Erreur imprévue rencontrée.", 0, $e); // } // // return $this; // } // // private function fetchEcoleDoctoraleIndividu() // { // if (null !== $this->ecoleDoctoraleIndividu) { // return $this->ecoleDoctoraleIndividu; // } // // $sourceCodeIndividu = $this->people->getSupannEmpId(); // // $this->ecoleDoctoraleIndividu = // $this->ecoleDoctoraleService->getRepository()->findMembresBySourceCodeIndividu($sourceCodeIndividu); // // return $this->ecoleDoctoraleIndividu; // } // // private function addUniteRechercheIndividuContents(ChainEvent $e) // { // try { // $e->addContents(self::KEY_UNITE_RECHERCHE_INDIVIDU, $this->fetchUniteRechercheIndividu()); // } catch (ExceptionInterface $e) { // throw new RuntimeException("Erreur imprévue rencontrée.", 0, $e); // } // // return $this; // } // // private function fetchUniteRechercheIndividu() // { // if (null !== $this->uniteRechercheIndividu) { // return $this->uniteRechercheIndividu; // } // // $sourceCodeIndividu = $this->people->getSupannEmpId(); // // $this->uniteRechercheIndividu = // $this->uniteRechercheService->getRepository()->findMembresBySourceCodeIndividu($sourceCodeIndividu); // // return $this->uniteRechercheIndividu; // } private function fetchStructureRoleIndividu() { if (null !== $this->structureIndividu) { return $this->structureIndividu; } //todo a changer une fois l'individu mieux identifié $sourceCodeIndividu = $this->people->getSupannEmpId(); $this->structureIndividu = $this->roleService->getIndividuRolesByIndividuSourceCode($sourceCodeIndividu); return $this->structureIndividu; } private function addStructureRoleContents(ChainEvent $e) { try { $e->addContents(self::KEY_STRUCTURE_ROLE_INDIVIDU, $this->fetchStructureRoleIndividu()); } catch (ExceptionInterface $e) { throw new RuntimeException("Erreur imprévue rencontrée.", 0, $e); } return $this; } public function write(ChainEvent $e) { Loading module/Application/src/Application/Authentication/Storage/AppStorageFactory.php +4 −6 Changes for module/Application/src/Application/Authentication/Storage/AppStorageFactory.php: 4 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ namespace Application\Authentication\Storage; use Application\Service\Doctorant\DoctorantService; use Application\Service\EcoleDoctorale\EcoleDoctoraleService; use Application\Service\Role\RoleService; use Application\Service\UniteRecherche\UniteRechercheService; use Application\Service\Utilisateur\UtilisateurService; use Zend\ServiceManager\ServiceLocatorInterface; Loading @@ -22,17 +23,14 @@ class AppStorageFactory /** @var DoctorantService $doctorantService */ $doctorantService = $sl->get(DoctorantService::class); /** @var EcoleDoctoraleService $edService */ $edService = $sl->get(EcoleDoctoraleService::class); /** @var RoleService $roleService */ $roleService = $sl->get(RoleService::class); /** @var UniteRechercheService $urService */ $urService = $sl->get(UniteRechercheService::class); $service = new AppStorage(); $service->setUtilisateurService($utilisateurService); $service->setDoctorantService($doctorantService); $service->setEcoleDoctoraleService($edService); $service->setUniteRechercheService($urService); $service->setRoleService($roleService); return $service; } Loading Loading
error.log 0 → 100644 +6 −0 Changes for error.log: 6 added lines, 0 removed lines. Original line number Diff line number Diff line 1 /var/www/html/sygal-versions/sygal-20180313-123330/vendor/unicaen/app/src/UnicaenApp/Exporter/Pdf.php(371): UnicaenApp\\Exporter\\Pdf->getMpdf()\n 2 /var/www/html/sygal-versions/sygal-20180313-123330/vendor/unicaen/app/src/UnicaenApp/Exporter/Pdf.php(348): UnicaenApp\\Exporter\\Pdf->_addCss()\n 3 /var/www/html/sygal-versions/sygal-20180313-123330/vendor/unicaen/app/src/UnicaenApp/Exporter/Pdf.php(287): UnicaenApp\\Exporter\\Pdf->_generate()\n 4 /var/www/html/sygal-versions/sygal-20180313-123330/module/Application/src/Application/Service/These/PageDeGarde/PageDeCouverturePdfExporter.php(34): UnicaenApp\\Exporter\\Pdf->export('export.pdf', 'I', NULL)\n 5 /var/www/html/sygal-versions/sygal-201803 in /var/www/html/sygal-versions/sygal-20180313-123330/vendor/mpdf/mpdf/mpdf.php on line 1232, referer: https://sygal-pp.unicaen.fr/these/identite/28072
module/Application/src/Application/Authentication/Storage/AppStorage.php +37 −77 Changes for module/Application/src/Application/Authentication/Storage/AppStorage.php: 37 added lines, 77 removed lines. Original line number Diff line number Diff line Loading @@ -4,11 +4,11 @@ namespace Application\Authentication\Storage; use Application\Authentication\Adapter\ShibUser; use Application\Entity\Db\Doctorant; use Application\Entity\Db\EcoleDoctoraleIndividu; use Application\Entity\Db\UniteRechercheIndividu; use Application\Entity\Db\IndividuRole; use Application\Entity\Db\Utilisateur; use Application\Service\Doctorant\DoctorantServiceAwareTrait; use Application\Service\EcoleDoctorale\EcoleDoctoraleServiceAwareTrait; use Application\Service\Role\RoleServiceAwareTrait; use Application\Service\UniteRecherche\UniteRechercheServiceAwareTrait; use Application\Service\Utilisateur\UtilisateurServiceAwareTrait; use Doctrine\ORM\NonUniqueResultException; Loading @@ -25,12 +25,8 @@ use Zend\Authentication\Exception\ExceptionInterface; * - entité Doctorant si l'utilisateur authentifié est trouvé parmi les thésards, * - null sinon. * * Valeur associée à la clé KEY_ECOLE_DOCTORALE_INDIVIDU : * - entités EcoleDoctoraleIndividu si l'utilisateur authentifié est trouvé dans EcoleDoctoraleIndividu, * - [] sinon. * * Valeur associée à la clé KEY_UNITE_RECHERCHE_INDIVIDU : * - entités UniteRechercheIndividu si l'utilisateur authentifié est trouvé dans UniteRechercheIndividu, * Valeur associée à la clé KEY_STRUCTURE_ROLE_INDIVIDU : * - entités RoleServiceIndividu si l'utilisateur authentifié est trouvé dans IndividuRole, * - [] sinon. * * @author Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr> Loading @@ -39,13 +35,11 @@ class AppStorage implements ChainableStorage { use UtilisateurServiceAwareTrait; use DoctorantServiceAwareTrait; use EcoleDoctoraleServiceAwareTrait; use UniteRechercheServiceAwareTrait; use RoleServiceAwareTrait; const KEY_DB_UTILSATEUR = 'db'; const KEY_DOCTORANT = 'doctorant'; const KEY_ECOLE_DOCTORALE_INDIVIDU = 'ecoleDoctoraleIndividu'; const KEY_UNITE_RECHERCHE_INDIVIDU = 'uniteRechercheIndividu'; const KEY_STRUCTURE_ROLE_INDIVIDU = 'structureIndividu'; /** * @var mixed Loading @@ -68,14 +62,9 @@ class AppStorage implements ChainableStorage protected $doctorant; /** * @var EcoleDoctoraleIndividu[] */ protected $ecoleDoctoraleIndividu; /** * @var UniteRechercheIndividu[] * @var IndividuRole[] */ protected $uniteRechercheIndividu; protected $structureIndividu; /** * @param ChainEvent $e Loading Loading @@ -103,15 +92,10 @@ class AppStorage implements ChainableStorage */ $this->addDoctorantContents($e); // /** // * Collecte des données au cas où l'utilisateur connecté est trouvé dans la table EcoleDoctoraleIndividu. // */ // $this->addEcoleDoctoraleIndividuContents($e); // // /** // * Collecte des données au cas où l'utilisateur connecté est trouvé dans la table UniteRechercheIndividu. // */ // $this->addUniteRechercheIndividuContents($e); /** * Collecte des données au cas où l'utilisateur connecté est trouvé dans la table EcoleDoctoraleIndividu. */ $this->addStructureRoleContents($e); } protected function addDbUtilisateurContents(ChainEvent $e) Loading Loading @@ -184,55 +168,31 @@ class AppStorage implements ChainableStorage return $this->doctorant; } // private function addEcoleDoctoraleIndividuContents(ChainEvent $e) // { // try { // $e->addContents(self::KEY_ECOLE_DOCTORALE_INDIVIDU, $this->fetchEcoleDoctoraleIndividu()); // } catch (ExceptionInterface $e) { // throw new RuntimeException("Erreur imprévue rencontrée.", 0, $e); // } // // return $this; // } // // private function fetchEcoleDoctoraleIndividu() // { // if (null !== $this->ecoleDoctoraleIndividu) { // return $this->ecoleDoctoraleIndividu; // } // // $sourceCodeIndividu = $this->people->getSupannEmpId(); // // $this->ecoleDoctoraleIndividu = // $this->ecoleDoctoraleService->getRepository()->findMembresBySourceCodeIndividu($sourceCodeIndividu); // // return $this->ecoleDoctoraleIndividu; // } // // private function addUniteRechercheIndividuContents(ChainEvent $e) // { // try { // $e->addContents(self::KEY_UNITE_RECHERCHE_INDIVIDU, $this->fetchUniteRechercheIndividu()); // } catch (ExceptionInterface $e) { // throw new RuntimeException("Erreur imprévue rencontrée.", 0, $e); // } // // return $this; // } // // private function fetchUniteRechercheIndividu() // { // if (null !== $this->uniteRechercheIndividu) { // return $this->uniteRechercheIndividu; // } // // $sourceCodeIndividu = $this->people->getSupannEmpId(); // // $this->uniteRechercheIndividu = // $this->uniteRechercheService->getRepository()->findMembresBySourceCodeIndividu($sourceCodeIndividu); // // return $this->uniteRechercheIndividu; // } private function fetchStructureRoleIndividu() { if (null !== $this->structureIndividu) { return $this->structureIndividu; } //todo a changer une fois l'individu mieux identifié $sourceCodeIndividu = $this->people->getSupannEmpId(); $this->structureIndividu = $this->roleService->getIndividuRolesByIndividuSourceCode($sourceCodeIndividu); return $this->structureIndividu; } private function addStructureRoleContents(ChainEvent $e) { try { $e->addContents(self::KEY_STRUCTURE_ROLE_INDIVIDU, $this->fetchStructureRoleIndividu()); } catch (ExceptionInterface $e) { throw new RuntimeException("Erreur imprévue rencontrée.", 0, $e); } return $this; } public function write(ChainEvent $e) { Loading
module/Application/src/Application/Authentication/Storage/AppStorageFactory.php +4 −6 Changes for module/Application/src/Application/Authentication/Storage/AppStorageFactory.php: 4 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ namespace Application\Authentication\Storage; use Application\Service\Doctorant\DoctorantService; use Application\Service\EcoleDoctorale\EcoleDoctoraleService; use Application\Service\Role\RoleService; use Application\Service\UniteRecherche\UniteRechercheService; use Application\Service\Utilisateur\UtilisateurService; use Zend\ServiceManager\ServiceLocatorInterface; Loading @@ -22,17 +23,14 @@ class AppStorageFactory /** @var DoctorantService $doctorantService */ $doctorantService = $sl->get(DoctorantService::class); /** @var EcoleDoctoraleService $edService */ $edService = $sl->get(EcoleDoctoraleService::class); /** @var RoleService $roleService */ $roleService = $sl->get(RoleService::class); /** @var UniteRechercheService $urService */ $urService = $sl->get(UniteRechercheService::class); $service = new AppStorage(); $service->setUtilisateurService($utilisateurService); $service->setDoctorantService($doctorantService); $service->setEcoleDoctoraleService($edService); $service->setUniteRechercheService($urService); $service->setRoleService($roleService); return $service; } Loading