Gush\Command\Issue\IssueCreateCommand::execute PHP Метод

execute() защищенный Метод

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $tracker = $this->getIssueTracker();
        $title = trim($input->getOption('title'));
        $body = $input->getOption('body');
        if ('' === $title) {
            throw new UserException('Issue title cannot be empty, use the --title option to specify a title or use the interactive editor.');
        }
        if (!$this->getParameter($input, 'remove-promote')) {
            $body = $this->appendPlug($body);
        }
        $issue = $tracker->openIssue($title, $body);
        $url = $tracker->getIssueUrl($issue);
        $this->getHelper('gush_style')->success("Created issue {$url}");
        return self::COMMAND_SUCCESS;
    }