/** * Does some routine installation tasks so people don't have to. * * @param \Composer\Script\Event $event The composer event object. * @throws \Exception Exception raised by validator. * @return void */ public static function postInstall(Event $event) { $io = $event->getIO(); $rootDir = dirname(dirname(__DIR__)); static::createAppConfig($rootDir, $io); static::createEnvConfig($rootDir, $io); static::createWritableDirectories($rootDir, $io); // ask if the permissions should be changed if ($io->isInteractive()) { $validator = function ($arg) { if (in_array($arg, ['Y', 'y', 'N', 'n'])) { return $arg; } throw new Exception('This is not a valid answer. Please choose Y or n.'); }; $setFolderPermissions = $io->askAndValidate('<info>Set Folder Permissions ? (Default to Y)</info> [<comment>Y,n</comment>]? ', $validator, 10, 'Y'); if (in_array($setFolderPermissions, ['Y', 'y'])) { static::setFolderPermissions($rootDir, $io); } } else { static::setFolderPermissions($rootDir, $io); } static::setSecuritySalt($rootDir, $io); if (class_exists('\\Cake\\Codeception\\Console\\Installer')) { \Cake\Codeception\Console\Installer::customizeCodeceptionBinary($event); } }
/** * Does some routine installation tasks so people don't have to. * * @param \Composer\Script\Event $event The composer event object. * @throws \Exception Exception raised by validator. * @return void */ public static function postInstall(Event $event) { $io = $event->getIO(); $rootDir = dirname(dirname(__DIR__)); static::createAppConfig($rootDir, $io); static::createWritableDirectories($rootDir, $io); // ask if the permissions should be changed if ($io->isInteractive()) { $validator = function ($arg) { if (in_array($arg, ['Y', 'y', 'N', 'n'])) { return $arg; } throw new Exception('This is not a valid answer. Please choose Y or n.'); }; $setFolderPermissions = $io->askAndValidate('<info>Set Folder Permissions ? (Default to Y)</info> [<comment>Y,n</comment>]? ', $validator, 10, 'Y'); if (in_array($setFolderPermissions, ['Y', 'y'])) { static::setFolderPermissions($rootDir, $io); } } else { static::setFolderPermissions($rootDir, $io); } static::setSecuritySalt($rootDir, $io); if (class_exists('\\Cake\\Codeception\\Console\\Installer')) { \Cake\Codeception\Console\Installer::customizeCodeceptionBinary($event); } //On copie le connecteur Mysql pour Java (non inclu de base dans Pentaho) copy(__DIR__ . '/../../vendor/mysql/mysql-connector-j/mysql-connector-java-5.1.38-bin.jar', __DIR__ . '/../../vendor/pentaho/data-integration/lib/mysql-connector-java-5.1.38-bin.jar'); }
/** * Does some routine installation tasks so people don't have to. * * @param Event $event The composer event object. * @throws Exception Exception raised by validator. * @return void */ public static function postInstall(Event $event) { $io = $event->getIO(); $rootDir = dirname(dirname(__DIR__)); static::createAppConfig($rootDir, $io); static::createWritableDirectories($rootDir, $io); if (static::confirmAction($io, 'Set Folder Permissions?')) { static::setFolderPermissions($rootDir, $io); } static::setSecuritySalt($rootDir, $io); static::setDebugLevel($rootDir, $event); if (class_exists('\\Cake\\Codeception\\Console\\Installer')) { \Cake\Codeception\Console\Installer::customizeCodeceptionBinary($event); } }