1 | <?php |
||
13 | class GenerateKeyCommand extends Command |
||
14 | { |
||
15 | /** |
||
16 | * @var ApiKeyServiceInterface |
||
17 | */ |
||
18 | private $apiKeyService; |
||
19 | /** |
||
20 | * @var TranslatorInterface |
||
21 | */ |
||
22 | private $translator; |
||
23 | |||
24 | /** |
||
25 | * GenerateKeyCommand constructor. |
||
26 | * @param ApiKeyServiceInterface|ApiKeyService $apiKeyService |
||
27 | * @param TranslatorInterface $translator |
||
28 | * |
||
29 | * @Inject({ApiKeyService::class, "translator"}) |
||
30 | */ |
||
31 | 2 | public function __construct(ApiKeyServiceInterface $apiKeyService, TranslatorInterface $translator) |
|
37 | |||
38 | 2 | public function configure() |
|
49 | |||
50 | 2 | public function execute(InputInterface $input, OutputInterface $output) |
|
56 | } |
||
57 |