protected function configureDeploy(InputInterface $input, OutputInterface $output, QuestionHelper $questionHelper, $appName)
    {
        $data = [];
        $properties = array(
            'application' => array(
                'helper'       => $appName,
                'label'        => 'Application',
                'autocomplete' => [$appName],
            ),
            'repo_url'    => array(
                'helper'       => 'git@github.com:{user}/{repo}.git',
                'label'        => 'Repository',
                'autocomplete' => [sprintf('git@github.com:chalasr/%s.git', $appName)],
            ),
        );

        $properties += Yaml::parse(file_get_contents($this->getBundleVendorDir().'/Resources/config/setup_dialog.yml'));

        foreach ($properties as $key => $property) {
            if ('deploy_to' == $key && null !== $data['ssh_user']) {
                $property['helper'] = "/home/{$data['ssh_user']}/public_html";
            }

            $question = new Question("<info>{$property['label']}</info> [<comment>{$property['helper']}</comment>]: ", $property['helper']);

            if (isset($property['autocomplete'])) {
                $question->setAutocompleterValues($property['autocomplete']);
            }

            $data[$key] = $questionHelper->ask($input, $output, $question);
        }

        $data['composer'] = $this->checkComposer($input, $output, $questionHelper, $data);
        $data['schemadb'] = $this->checkSchemaUpdate($input, $output, $questionHelper, $data);

        return $data;
    }
protected function configureDeploy(InputInterface $input, OutputInterface $output, QuestionHelper $questionHelper, $appName)
    {
        $data = [];
        $properties = array(
            'application' => array(
                'helper'       => $appName,
                'label'        => 'Application',
                'autocomplete' => [$appName],
            ),
            'repo_url'    => array(
                'helper'       => 'git@github.com:{user}/{repo}.git',
                'label'        => 'Repository',
                'autocomplete' => [sprintf('git@github.com:chalasr/%s.git', $appName)],
            ),
        );

        $properties += Yaml::parse(file_get_contents($this->getBundleVendorDir().'/Resources/config/setup_dialog.yml'));

        foreach ($properties as $key => $property) {
            if ('deploy_to' == $key && null !== $data['ssh_user']) {
                $property['helper'] = "/home/{$data['ssh_user']}/public_html";
            }

            $question = new Question("<info>{$property['label']}</info> [<comment>{$property['helper']}</comment>]: ", $property['helper']);

            if (isset($property['autocomplete'])) {
                $question->setAutocompleterValues($property['autocomplete']);
            }

            $data[$key] = $questionHelper->ask($input, $output, $question);
        }

        $data['composer'] = $this->checkComposer($input, $output, $questionHelper, $data);
        $data['schemadb'] = $this->checkSchemaUpdate($input, $output, $questionHelper, $data);

        return $data;
    }
protected function configureDeploy ( InputInterface $ input , OutputInterface $ output , QuestionHelper $ questionHelper , $ appName ) { $ data = [ ] ; $ properties = array ( 'application' => array ( 'helper' => $ appName , 'label' => 'Application' , 'autocomplete' => [ $ appName ] , ) , 'repo_url' => array ( 'helper' => 'git@github.com:{user}/{repo}.git' , 'label' => 'Repository' , 'autocomplete' => [ sprintf ( 'git@github.com:chalasr/%s.git' , $ appName ) ] , ) , ) ; $ properties += Yaml :: parse ( file_get_contents ( $ this -> getBundleVendorDir ( ) . '/Resources/config/setup_dialog.yml' ) ) ; foreach ( $ properties as $ key => $ property ) { if ( 'deploy_to' == $ key && null !== $ data [ 'ssh_user' ] ) { $ property [ 'helper' ] = "/home/{$data['ssh_user']}/public_html" ; } $ question = new Question ( "<info>{$property['label']}</info> [<comment>{$property['helper']}</comment>]: " , $ property [ 'helper' ] ) ; if ( isset ( $ property [ 'autocomplete' ] ) ) { $ question -> setAutocompleterValues ( $ property [ 'autocomplete' ] ) ; } $ data [ $ key ] = $ questionHelper -> ask ( $ input , $ output , $ question ) ; } $ data [ 'composer' ] = $ this -> checkComposer ( $ input , $ output , $ questionHelper , $ data ) ; $ data [ 'schemadb' ] = $ this -> checkSchemaUpdate ( $ input , $ output , $ questionHelper , $ data ) ; return $ data ; }
Configure deploy.rb capistrano file.

@param InputInterface  $input
@param OutputInterface $output
@param QuestionHelper  $questionHelper
@param string          $appName

@return array
Configure deploy . rb capistrano file .