| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class RemoveKeyCommand extends Command |
||
| 15 | { |
||
| 16 | protected static $defaultName = 'damax:api-auth:storage:remove-key'; |
||
| 17 | |||
| 18 | private $storage; |
||
| 19 | |||
| 20 | public function __construct(Storage $storage) |
||
| 21 | { |
||
| 22 | parent::__construct(); |
||
| 23 | |||
| 24 | $this->storage = $storage; |
||
| 25 | } |
||
| 26 | |||
| 27 | protected function configure() |
||
| 28 | { |
||
| 29 | $this |
||
| 30 | ->setDescription('Remove api key from storage.') |
||
| 31 | ->addArgument('key', InputArgument::REQUIRED, 'Api key.') |
||
| 32 | ; |
||
| 33 | } |
||
| 34 | |||
| 35 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 40 | } |
||
| 41 | } |
||
| 42 |