Commit 291e9a9e authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

MAJ procédure d'install

parent d9f5c4ce
Loading
Loading
Loading
Loading
+8 −1
Changes for bin/install: 8 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -36,6 +36,9 @@ $composerCommand = 'composer';
// Répertoire de cache de l'application (chemin relatif)
$cacheDir = 'cache';

// Commande à lancer après l'installation de l'application
$postInstallCommand = './vendor/bin/laminas install';

// Liste des commandes systèmes qui doivent être installées
$depCommands = [
    'git'     => 'Gestionnaire de versions',
@@ -218,7 +221,11 @@ $c->section('Chargement des dépendances à l\'aide de Composer');
$c->passthru("cd $dir;$composerCommand install --optimize-autoloader");


// La suite de l'installation sera lancée par composer avec les post-install-cmd
// Poursuite de la procédure d'installation en passant la main
if ($postInstallCommand){
    $c->passthru(["cd $dir;$postInstallCommand"]);
}


/************************************************************
 *                      Classes utiles                      *
+1 −2
Changes for composer.json: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -48,8 +48,7 @@
    },
    "scripts"          : {
        "sniffer:php8"    : "./vendor/bin/phpcs -p ./module --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.0",
        "phpcs"           : "./vendor/bin/phpcs -p ./module --standard=PSR12",
        "post-install-cmd": "./vendor/bin/laminas install"
        "phpcs"           : "./vendor/bin/phpcs -p ./module --standard=PSR12"
    },
    "minimum-stability": "dev"
}
 No newline at end of file