protected function execute(InputInterface $input, OutputInterface $output) { $oAuthService = new OAuthService($this->getSlim()); $helper = $this->getHelper('question'); $question = new Question('Please enter a name: ', 'untitled'); $name = $helper->ask($input, $output, $question); $question = new Question('Please enter a description: ', ''); $description = $helper->ask($input, $output, $question); $question = new Question('Please enter a redirect URI: '); $redirectUri = $helper->ask($input, $output, $question); $client = $oAuthService->addClient($name, $description, $redirectUri); $text = json_encode($client, JSON_PRETTY_PRINT); $output->writeln('<info>OAuth client successfully created!</info>'); $output->writeln('<info>Info:</info>'); $output->writeln($text); }