Loading config/autoload/unicaen-utilisateur.global.php +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ use UnicaenUtilisateur\ORM\Event\Listeners\HistoriqueListenerFactory; use UnicaenUtilisateur\Provider\Privilege\RolePrivileges; use UnicaenUtilisateur\Provider\Privilege\UtilisateurPrivileges; use UnicaenUtilisateur\Service\User\UserService; use UnicaenUtilisateurLdapAdapter\Service\LdapService; use UnicaenUtilisateurOctopusAdapter\Service\OctopusService; return [ Loading documentation/release/3.1.2.md +12 −0 Original line number Diff line number Diff line Loading @@ -4,9 +4,21 @@ **Changements** * Ajout d'un parametre indiquant le chamin d'installation pour la partie Vérification * [FIX] propagation d'un renommage de variable sur l'interface des supérieurs hiérarchique **Modifications de la base de donnée** Penser à mettre le bon chemin d'installation soit dans le sql si dessous ou dans l'interface des paramètres ```sql INSERT INTO unicaen_parametre_parametre(CATEGORIE_ID, CODE, LIBELLE, DESCRIPTION, VALEURS_POSSIBLES, VALEUR, ORDRE) WITH d(CODE, LIBELLE, DESCRIPTION, VALEURS_POSSIBLES, VALEUR, ORDRE) AS ( SELECT 'INSTALL_PATH', 'Chemin d''installation', 'Utiliser par la partie vérification de l''installation', 'String', '/var/www/html', 1000 ) SELECT cp.id, d.CODE, d.LIBELLE, d.DESCRIPTION, d.VALEURS_POSSIBLES, d.VALEUR, d.ORDRE FROM d JOIN unicaen_parametre_categorie cp ON cp.CODE = 'GLOBAL'; ``` **Évolution des bibliothèques** module/Application/src/Application/Controller/VerificationController.php +2 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Application\Controller; use Application\Provider\Parametre\GlobalParametres; use Laminas\Mvc\Controller\AbstractActionController; use Laminas\View\Model\ViewModel; use UnicaenEtat\Service\Etat\EtatServiceAwareTrait; Loading Loading @@ -31,6 +32,7 @@ class VerificationController extends AbstractActionController { return new ViewModel([ 'modules' => $modules, 'installation_path' => $this->getParametreService()->getParametreByCode(GlobalParametres::TYPE, GlobalParametres::INSTALL_PATH), 'templateService' => $this->getTemplateService(), 'privilegeService' => $this->getPrivilegeService(), 'etatService' => $this->getEtatService(), Loading module/Application/src/Application/Provider/Parametre/GlobalParametres.php 0 → 100644 +8 −0 Original line number Diff line number Diff line <?php namespace Application\Provider\Parametre; class GlobalParametres { const TYPE = "GLOBAL"; const INSTALL_PATH = "INSTALL_PATH"; } No newline at end of file module/Application/view/application/verification/index.phtml +17 −15 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ /** * @see \Application\Controller\VerificationController::indexAction() * @var string[] $modules * @var string $installation_path * * @var TemplateService $templateService * @var PrivilegeService $privilegeService Loading Loading @@ -58,7 +59,7 @@ $this->headTitle("Vérification de l'installation"); <h2> Vérification du module <em><?php echo $module; ?></em></h2> <!-- ROLE ---------------------------------------------------------------------------------------------------------> <?php $exist = (file_exists('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Role')); ?> <?php $exist = (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Role')); ?> <div class="card bg-default "> <div class="card-header"> Role Loading @@ -68,7 +69,7 @@ $this->headTitle("Vérification de l'installation"); <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Role</code> !</span> <?php else : ?> <?php $filenames = array_diff(scandir('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Role'), ['.', '..']); $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Role'), ['.', '..']); foreach ($filenames as $filename) { $res = explode('.', $filename); $path = $module ."\\Provider\\Role\\".$res[0]; Loading Loading @@ -96,17 +97,18 @@ $this->headTitle("Vérification de l'installation"); </div> <!-- PARAMETRE ----------------------------------------------------------------------------------------------------> <?php $exist = (file_exists('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Parametre')); ?> <?php $path = file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Parametre'); ?> <?php $exist = (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Parametre')); ?> <div class="card bg-default "> <div class="card-header"> Parametres Parametres [Path:<code><?php echo $path; ?></code>] </div> <div class="card-body"> <?php if (!$exist) : ?> <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Parametre</code> !</span> <?php else : ?> <?php $filenames = array_diff(scandir('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Parametre'), ['.', '..']); $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Parametre'), ['.', '..']); foreach ($filenames as $filename) { $res = explode('.', $filename); Loading Loading @@ -149,7 +151,7 @@ $this->headTitle("Vérification de l'installation"); </div> <!-- TEMPLATE -----------------------------------------------------------------------------------------------------> <?php $exist = (file_exists('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Template')); ?> <?php $exist = (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Template')); ?> <div class="card bg-default "> <div class="card-header"> Templates : Mail, Pdf, Texte Loading @@ -159,7 +161,7 @@ $this->headTitle("Vérification de l'installation"); <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Template</code> !</span> <?php else : ?> <?php $filenames = array_diff(scandir('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Template'), ['.', '..']); $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Template'), ['.', '..']); foreach ($filenames as $filename) { $res = explode('.', $filename); $path = $module ."\\Provider\\Template\\".$res[0]; Loading @@ -185,7 +187,7 @@ $this->headTitle("Vérification de l'installation"); </div> </div> <?php $exist = (file_exists('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Etat')); ?> <?php $exist = (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Etat')); ?> <div class="card bg-default"> <div class="card-header"> États et types d'état Loading @@ -195,7 +197,7 @@ $this->headTitle("Vérification de l'installation"); <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Etat</code> !</span> <?php else : ?> <?php $filenames = array_diff(scandir('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Etat'), ['.', '..']); $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Etat'), ['.', '..']); foreach ($filenames as $filename) { $res = explode('.', $filename); Loading Loading @@ -238,7 +240,7 @@ $this->headTitle("Vérification de l'installation"); </div> </div> <?php $exist = (file_exists('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Validation')); ?> <?php $exist = (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Validation')); ?> <div class="card bg-default"> <div class="card-header"> Type de validation Loading @@ -248,7 +250,7 @@ $this->headTitle("Vérification de l'installation"); <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Validation</code> !</span> <?php else : ?> <?php $filenames = array_diff(scandir('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Validation'), ['.', '..']); $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Validation'), ['.', '..']); foreach ($filenames as $filename) { $res = explode('.', $filename); Loading Loading @@ -276,7 +278,7 @@ $this->headTitle("Vérification de l'installation"); </div> </div> <?php $exist = (file_exists('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Event')); ?> <?php $exist = (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Event')); ?> <div class="card bg-default"> <div class="card-header"> Événements Loading @@ -286,7 +288,7 @@ $this->headTitle("Vérification de l'installation"); <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Event</code> !</span> <?php else : ?> <?php $filenames = array_diff(scandir('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Event'), ['.', '..']); $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Event'), ['.', '..']); foreach ($filenames as $filename) { $res = explode('.', $filename); $path = $module ."\\Provider\\Event\\".$res[0]; Loading @@ -312,7 +314,7 @@ $this->headTitle("Vérification de l'installation"); </div> </div> <?php $exist = (file_exists('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Privilege')); ?> <?php $exist = (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Privilege')); ?> <div class="card bg-default"> <div class="card-header"> Privilèges Loading @@ -322,7 +324,7 @@ $this->headTitle("Vérification de l'installation"); <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Privilege</code> !</span> <?php else : ?> <?php $filenames = array_diff(scandir('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Privilege'), ['.', '..']); $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Privilege'), ['.', '..']); foreach ($filenames as $filename) { $res = explode('.', $filename); $path = $module ."\\Provider\\Privilege\\".$res[0]; Loading Loading
config/autoload/unicaen-utilisateur.global.php +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ use UnicaenUtilisateur\ORM\Event\Listeners\HistoriqueListenerFactory; use UnicaenUtilisateur\Provider\Privilege\RolePrivileges; use UnicaenUtilisateur\Provider\Privilege\UtilisateurPrivileges; use UnicaenUtilisateur\Service\User\UserService; use UnicaenUtilisateurLdapAdapter\Service\LdapService; use UnicaenUtilisateurOctopusAdapter\Service\OctopusService; return [ Loading
documentation/release/3.1.2.md +12 −0 Original line number Diff line number Diff line Loading @@ -4,9 +4,21 @@ **Changements** * Ajout d'un parametre indiquant le chamin d'installation pour la partie Vérification * [FIX] propagation d'un renommage de variable sur l'interface des supérieurs hiérarchique **Modifications de la base de donnée** Penser à mettre le bon chemin d'installation soit dans le sql si dessous ou dans l'interface des paramètres ```sql INSERT INTO unicaen_parametre_parametre(CATEGORIE_ID, CODE, LIBELLE, DESCRIPTION, VALEURS_POSSIBLES, VALEUR, ORDRE) WITH d(CODE, LIBELLE, DESCRIPTION, VALEURS_POSSIBLES, VALEUR, ORDRE) AS ( SELECT 'INSTALL_PATH', 'Chemin d''installation', 'Utiliser par la partie vérification de l''installation', 'String', '/var/www/html', 1000 ) SELECT cp.id, d.CODE, d.LIBELLE, d.DESCRIPTION, d.VALEURS_POSSIBLES, d.VALEUR, d.ORDRE FROM d JOIN unicaen_parametre_categorie cp ON cp.CODE = 'GLOBAL'; ``` **Évolution des bibliothèques**
module/Application/src/Application/Controller/VerificationController.php +2 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Application\Controller; use Application\Provider\Parametre\GlobalParametres; use Laminas\Mvc\Controller\AbstractActionController; use Laminas\View\Model\ViewModel; use UnicaenEtat\Service\Etat\EtatServiceAwareTrait; Loading Loading @@ -31,6 +32,7 @@ class VerificationController extends AbstractActionController { return new ViewModel([ 'modules' => $modules, 'installation_path' => $this->getParametreService()->getParametreByCode(GlobalParametres::TYPE, GlobalParametres::INSTALL_PATH), 'templateService' => $this->getTemplateService(), 'privilegeService' => $this->getPrivilegeService(), 'etatService' => $this->getEtatService(), Loading
module/Application/src/Application/Provider/Parametre/GlobalParametres.php 0 → 100644 +8 −0 Original line number Diff line number Diff line <?php namespace Application\Provider\Parametre; class GlobalParametres { const TYPE = "GLOBAL"; const INSTALL_PATH = "INSTALL_PATH"; } No newline at end of file
module/Application/view/application/verification/index.phtml +17 −15 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ /** * @see \Application\Controller\VerificationController::indexAction() * @var string[] $modules * @var string $installation_path * * @var TemplateService $templateService * @var PrivilegeService $privilegeService Loading Loading @@ -58,7 +59,7 @@ $this->headTitle("Vérification de l'installation"); <h2> Vérification du module <em><?php echo $module; ?></em></h2> <!-- ROLE ---------------------------------------------------------------------------------------------------------> <?php $exist = (file_exists('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Role')); ?> <?php $exist = (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Role')); ?> <div class="card bg-default "> <div class="card-header"> Role Loading @@ -68,7 +69,7 @@ $this->headTitle("Vérification de l'installation"); <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Role</code> !</span> <?php else : ?> <?php $filenames = array_diff(scandir('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Role'), ['.', '..']); $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Role'), ['.', '..']); foreach ($filenames as $filename) { $res = explode('.', $filename); $path = $module ."\\Provider\\Role\\".$res[0]; Loading Loading @@ -96,17 +97,18 @@ $this->headTitle("Vérification de l'installation"); </div> <!-- PARAMETRE ----------------------------------------------------------------------------------------------------> <?php $exist = (file_exists('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Parametre')); ?> <?php $path = file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Parametre'); ?> <?php $exist = (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Parametre')); ?> <div class="card bg-default "> <div class="card-header"> Parametres Parametres [Path:<code><?php echo $path; ?></code>] </div> <div class="card-body"> <?php if (!$exist) : ?> <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Parametre</code> !</span> <?php else : ?> <?php $filenames = array_diff(scandir('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Parametre'), ['.', '..']); $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Parametre'), ['.', '..']); foreach ($filenames as $filename) { $res = explode('.', $filename); Loading Loading @@ -149,7 +151,7 @@ $this->headTitle("Vérification de l'installation"); </div> <!-- TEMPLATE -----------------------------------------------------------------------------------------------------> <?php $exist = (file_exists('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Template')); ?> <?php $exist = (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Template')); ?> <div class="card bg-default "> <div class="card-header"> Templates : Mail, Pdf, Texte Loading @@ -159,7 +161,7 @@ $this->headTitle("Vérification de l'installation"); <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Template</code> !</span> <?php else : ?> <?php $filenames = array_diff(scandir('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Template'), ['.', '..']); $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Template'), ['.', '..']); foreach ($filenames as $filename) { $res = explode('.', $filename); $path = $module ."\\Provider\\Template\\".$res[0]; Loading @@ -185,7 +187,7 @@ $this->headTitle("Vérification de l'installation"); </div> </div> <?php $exist = (file_exists('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Etat')); ?> <?php $exist = (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Etat')); ?> <div class="card bg-default"> <div class="card-header"> États et types d'état Loading @@ -195,7 +197,7 @@ $this->headTitle("Vérification de l'installation"); <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Etat</code> !</span> <?php else : ?> <?php $filenames = array_diff(scandir('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Etat'), ['.', '..']); $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Etat'), ['.', '..']); foreach ($filenames as $filename) { $res = explode('.', $filename); Loading Loading @@ -238,7 +240,7 @@ $this->headTitle("Vérification de l'installation"); </div> </div> <?php $exist = (file_exists('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Validation')); ?> <?php $exist = (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Validation')); ?> <div class="card bg-default"> <div class="card-header"> Type de validation Loading @@ -248,7 +250,7 @@ $this->headTitle("Vérification de l'installation"); <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Validation</code> !</span> <?php else : ?> <?php $filenames = array_diff(scandir('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Validation'), ['.', '..']); $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Validation'), ['.', '..']); foreach ($filenames as $filename) { $res = explode('.', $filename); Loading Loading @@ -276,7 +278,7 @@ $this->headTitle("Vérification de l'installation"); </div> </div> <?php $exist = (file_exists('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Event')); ?> <?php $exist = (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Event')); ?> <div class="card bg-default"> <div class="card-header"> Événements Loading @@ -286,7 +288,7 @@ $this->headTitle("Vérification de l'installation"); <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Event</code> !</span> <?php else : ?> <?php $filenames = array_diff(scandir('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Event'), ['.', '..']); $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Event'), ['.', '..']); foreach ($filenames as $filename) { $res = explode('.', $filename); $path = $module ."\\Provider\\Event\\".$res[0]; Loading @@ -312,7 +314,7 @@ $this->headTitle("Vérification de l'installation"); </div> </div> <?php $exist = (file_exists('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Privilege')); ?> <?php $exist = (file_exists($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Privilege')); ?> <div class="card bg-default"> <div class="card-header"> Privilèges Loading @@ -322,7 +324,7 @@ $this->headTitle("Vérification de l'installation"); <span class="text-danger"><span class="icon icon-information"></span> Aucun répertoire <code>Privilege</code> !</span> <?php else : ?> <?php $filenames = array_diff(scandir('/var/www/html/module/' . $module . '/src/' . $module . '/Provider/Privilege'), ['.', '..']); $filenames = array_diff(scandir($installation_path . '/module/' . $module . '/src/' . $module . '/Provider/Privilege'), ['.', '..']); foreach ($filenames as $filename) { $res = explode('.', $filename); $path = $module ."\\Provider\\Privilege\\".$res[0]; Loading