| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class ClientCreateCommand extends ContainerAwareCommand |
||
|
|
|||
| 11 | |||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var ClientManager |
||
| 16 | */ |
||
| 17 | private $clientManager; |
||
| 18 | |||
| 19 | protected function configure() |
||
| 20 | { |
||
| 21 | |||
| 22 | $this |
||
| 23 | ->setName('oauth:client:create') |
||
| 24 | ->setDescription('Creates a new client') |
||
| 25 | ->addOption('redirect-uri', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_OPTIONAL, 'Sets the redirect uri. Use multiple times to set multiple uris.', []) |
||
| 26 | ->addOption('grant-type', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_OPTIONAL, 'Set allowed grant type. Use multiple times to set multiple grant types', 'client_credentials') |
||
| 27 | ; |
||
| 28 | } |
||
| 29 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 38 | } |
||
| 39 | } |