Skip to content

Commit

Permalink
fix: load accepted algorithms from defined constant
Browse files Browse the repository at this point in the history
  • Loading branch information
oharzallah-greenbull committed Sep 26, 2024
1 parent 1c5a74b commit 0a7d340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/GenerateKeyPairCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected function configure(): void
$this->addOption('dry-run', null, InputOption::VALUE_NONE, 'Do not update key files.');
$this->addOption('skip-if-exists', null, InputOption::VALUE_NONE, 'Do not update key files if they already exist.');
$this->addOption('overwrite', null, InputOption::VALUE_NONE, 'Overwrite key files if they already exist.');
$this->addArgument('algorithm', InputArgument::OPTIONAL, 'The algorithm code, possible values : RS256|RS384|RS512|HS256|HS384|HS512|ES256|ES384|ES512', 'RS256');
$this->addArgument('algorithm', InputArgument::OPTIONAL, sprintf('The algorithm code, possible values : %s', implode(self::ACCEPTED_ALGORITHMS)), 'RS256');
}

protected function execute(InputInterface $input, OutputInterface $output): int
Expand Down

0 comments on commit 0a7d340

Please sign in to comment.