protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->configFilePath = $input->getOption('config-path');

        if (!$this->verifyNotInstalled($output)) {
            return;
        }

        $output->writeln('');
        $output->writeln('<info>******************</info>');
        $output->writeln('<info> '.Lang::get('welcome_to_phpci').'</info>');
        $output->writeln('<info>******************</info>');
        $output->writeln('');

        $this->checkRequirements($output);

        $output->writeln(Lang::get('please_answer'));
        $output->writeln('-------------------------------------');
        $output->writeln('');

        // ----
        // Get MySQL connection information and verify that it works:
        // ----
        $connectionVerified = false;

        while (!$connectionVerified) {
            $db = $this->getDatabaseInformation($input, $output);

            $connectionVerified = $this->verifyDatabaseDetails($db, $output);
        }

        $output->writeln('');

        $conf = array();
        $conf['b8']['database'] = $db;

        // ----
        // Get basic installation details (URL, etc)
        // ----
        $conf['phpci'] = $this->getPhpciConfigInformation($input, $output);

        $this->writeConfigFile($conf);
        $this->setupDatabase($output);
        $admin = $this->getAdminInformation($input, $output);
        $this->createAdminUser($admin, $output);
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->configFilePath = $input->getOption('config-path');

        if (!$this->verifyNotInstalled($output)) {
            return;
        }

        $output->writeln('');
        $output->writeln('<info>******************</info>');
        $output->writeln('<info> '.Lang::get('welcome_to_phpci').'</info>');
        $output->writeln('<info>******************</info>');
        $output->writeln('');

        $this->checkRequirements($output);

        $output->writeln(Lang::get('please_answer'));
        $output->writeln('-------------------------------------');
        $output->writeln('');

        // ----
        // Get MySQL connection information and verify that it works:
        // ----
        $connectionVerified = false;

        while (!$connectionVerified) {
            $db = $this->getDatabaseInformation($input, $output);

            $connectionVerified = $this->verifyDatabaseDetails($db, $output);
        }

        $output->writeln('');

        $conf = array();
        $conf['b8']['database'] = $db;

        // ----
        // Get basic installation details (URL, etc)
        // ----
        $conf['phpci'] = $this->getPhpciConfigInformation($input, $output);

        $this->writeConfigFile($conf);
        $this->setupDatabase($output);
        $admin = $this->getAdminInformation($input, $output);
        $this->createAdminUser($admin, $output);
    }
protected function execute ( InputInterface $ input , OutputInterface $ output ) { $ this -> configFilePath = $ input -> getOption ( 'config-path' ) ; if ( ! $ this -> verifyNotInstalled ( $ output ) ) { return ; } $ output -> writeln ( '' ) ; $ output -> writeln ( '<info>******************</info>' ) ; $ output -> writeln ( '<info> ' . Lang :: get ( 'welcome_to_phpci' ) . '</info>' ) ; $ output -> writeln ( '<info>******************</info>' ) ; $ output -> writeln ( '' ) ; $ this -> checkRequirements ( $ output ) ; $ output -> writeln ( Lang :: get ( 'please_answer' ) ) ; $ output -> writeln ( '-------------------------------------' ) ; $ output -> writeln ( '' ) ; // ---- // Get MySQL connection information and verify that it works: // ---- $ connectionVerified = false ; while ( ! $ connectionVerified ) { $ db = $ this -> getDatabaseInformation ( $ input , $ output ) ; $ connectionVerified = $ this -> verifyDatabaseDetails ( $ db , $ output ) ; } $ output -> writeln ( '' ) ; $ conf = array ( ) ; $ conf [ 'b8' ] [ 'database' ] = $ db ; // ---- // Get basic installation details (URL, etc) // ---- $ conf [ 'phpci' ] = $ this -> getPhpciConfigInformation ( $ input , $ output ) ; $ this -> writeConfigFile ( $ conf ) ; $ this -> setupDatabase ( $ output ) ; $ admin = $ this -> getAdminInformation ( $ input , $ output ) ; $ this -> createAdminUser ( $ admin , $ output ) ; }
Installs PHPCI - Can be run more than once as long as you ^C instead of entering an email address.
Installs PHPCI - Can be run more than once as long as you ^C instead of entering an email address .