private function setProject(InputInterface $input, OutputInterface $output)
    {
        $this->project = $input->getOption('projectname');
        if (!$this->project) {
            $this->project = $this->getTransifexConfigValue('/project');

            if (!$this->project) {
                throw new \RuntimeException('Error: unable to determine transifex project name.');
            }

            $this->writelnVerbose($output, sprintf('<info>automatically using project: %s</info>', $this->project));
        }

        $this->checkValidSlug($this->project);
    }
private function setProject(InputInterface $input, OutputInterface $output)
    {
        $this->project = $input->getOption('projectname');
        if (!$this->project) {
            $this->project = $this->getTransifexConfigValue('/project');

            if (!$this->project) {
                throw new \RuntimeException('Error: unable to determine transifex project name.');
            }

            $this->writelnVerbose($output, sprintf('<info>automatically using project: %s</info>', $this->project));
        }

        $this->checkValidSlug($this->project);
    }
private function setProject ( InputInterface $ input , OutputInterface $ output ) { $ this -> project = $ input -> getOption ( 'projectname' ) ; if ( ! $ this -> project ) { $ this -> project = $ this -> getTransifexConfigValue ( '/project' ) ; if ( ! $ this -> project ) { throw new \ RuntimeException ( 'Error: unable to determine transifex project name.' ) ; } $ this -> writelnVerbose ( $ output , sprintf ( '<info>automatically using project: %s</info>' , $ this -> project ) ) ; } $ this -> checkValidSlug ( $ this -> project ) ; }
Set the project, either from command line parameter or from config.

@param InputInterface  $input  The input to use.

@param OutputInterface $output The output to use.

@return void

@throws \RuntimeException When the value can not be determined.
Set the project either from command line parameter or from config .