protected function executeExistingCommand(
        $command_name,
        InputInterface $input = null,
        OutputInterface $output = null
    ) {
        if (!isset($command_name)) {
            return 1;
        }
        $input = isset($input) ? $input : $this->input();
        $output = isset($output) ? $output : $this->output();

        return $this->getApplication()
            ->find($command_name)
            ->run($input, $output);
    }
protected function executeExistingCommand(
        $command_name,
        InputInterface $input = null,
        OutputInterface $output = null
    ) {
        if (!isset($command_name)) {
            return 1;
        }
        $input = isset($input) ? $input : $this->input();
        $output = isset($output) ? $output : $this->output();

        return $this->getApplication()
            ->find($command_name)
            ->run($input, $output);
    }
protected function executeExistingCommand ( $ command_name , InputInterface $ input = null , OutputInterface $ output = null ) { if ( ! isset ( $ command_name ) ) { return 1 ; } $ input = isset ( $ input ) ? $ input : $ this -> input ( ) ; $ output = isset ( $ output ) ? $ output : $ this -> output ( ) ; return $ this -> getApplication ( ) -> find ( $ command_name ) -> run ( $ input , $ output ) ; }
Execute existing command.

@param $command_name
The name of the command.

@param InputInterface|null $input
@param OutputInterface|null $output

@return int
The execute command exit code.
@throws \Exception
Execute existing command .