HOME


Mini Shell 1.0
DIR: /home/dhnidqcz/journal.africaprag.org/tools/
Upload File :
Current File : /home/dhnidqcz/journal.africaprag.org/tools/install.php
<?php

/**
 * @file tools/install.php
 *
 * Copyright (c) 2014-2021 Simon Fraser University
 * Copyright (c) 2003-2021 John Willinsky
 * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
 *
 * @class OJSInstallTool
 *
 * @ingroup tools
 *
 * @brief CLI tool for installing OJS.
 */

require(dirname(__FILE__) . '/bootstrap.php');

class OJSInstallTool extends \PKP\cliTool\InstallTool
{
    /**
     * Read installation parameters from stdin.
     * FIXME: May want to implement an abstract "CLIForm" class handling input/validation.
     * FIXME: Use readline if available?
     */
    public function readParams()
    {
        printf("%s\n", __('installer.appInstallation'));

        parent::readParams();

        $this->readParamBoolean('install', 'installer.installApplication');

        return $this->params['install'];
    }
}

$tool = new OJSInstallTool($argv ?? []);
$tool->execute();