diff --git a/phpBB/config/installer/container/services_install_console.yml b/phpBB/config/installer/container/services_install_console.yml index 6f931c5031..1c1b819e82 100644 --- a/phpBB/config/installer/container/services_install_console.yml +++ b/phpBB/config/installer/container/services_install_console.yml @@ -12,6 +12,7 @@ services: - @language - @installer.helper.iohandler_factory - @installer.installer.install + - @installer.helper.install_helper tags: - { name: console.installer.command } diff --git a/phpBB/install_new/phpbbcli.php b/phpBB/install_new/phpbbcli.php index 4c8034be4e..508d051945 100644 --- a/phpBB/install_new/phpbbcli.php +++ b/phpBB/install_new/phpbbcli.php @@ -12,8 +12,6 @@ * */ -use Symfony\Component\Console\Input\ArgvInput; - if (php_sapi_name() !== 'cli') { echo 'This program must be run from the command line.' . PHP_EOL; diff --git a/phpBB/language/en/install_new.php b/phpBB/language/en/install_new.php index 923601b110..35153973de 100644 --- a/phpBB/language/en/install_new.php +++ b/phpBB/language/en/install_new.php @@ -305,3 +305,11 @@ $lang = array_merge($lang, array( 'INSTALLER_CONFIG_NOT_WRITABLE' => 'The installer config file is not writable.', )); + +// CLI messages +$lang = array_merge($lang, array( + 'CLI_INSTALL_BOARD' => 'Install phpBB', + 'CLI_INSTALL_SHOW_CONFIG' => 'Show the configuration which will be used', + 'CLI_INSTALL_VALIDATE_CONFIG' => 'Validate a configuration file', + 'CLI_CONFIG_FILE' => 'Config file to use', +));