protected function success($message, InputInterface $input, OutputInterface $output)
    {
        if ($input->getOption('json')) {
            $output->writeln(json_encode([
                'ok' => true,
                'message' => $message,
            ]));
        } else {
            $output->writeln($message);
        }

        return 0;
    }
protected function success($message, InputInterface $input, OutputInterface $output)
    {
        if ($input->getOption('json')) {
            $output->writeln(json_encode([
                'ok' => true,
                'message' => $message,
            ]));
        } else {
            $output->writeln($message);
        }

        return 0;
    }
protected function success ( $ message , InputInterface $ input , OutputInterface $ output ) { if ( $ input -> getOption ( 'json' ) ) { $ output -> writeln ( json_encode ( [ 'ok' => true , 'message' => $ message , ] ) ) ; } else { $ output -> writeln ( $ message ) ; } return 0 ; }
Show success message.

@param string          $message
@param InputInterface  $input
@param OutputInterface $output

@return int
Show success message .