| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 30 | { |
||
| 31 | |||
| 32 | $this->clientManager = $this->getContainer()->get('fos_oauth_server.client_manager.default'); ; |
||
| 33 | $client = $this->clientManager->createClient(); |
||
| 34 | $client->setRedirectUris($input->getOption('redirect-uri')); |
||
| 35 | $client->setAllowedGrantTypes([$input->getOption('grant-type')]); |
||
| 36 | $this->clientManager->updateClient($client); |
||
| 37 | $output->writeln(sprintf('Added a new client with public id <info>%s</info>.', $client->getPublicId())); |
||
| 38 | } |
||
| 39 | } |