Deprecated commands to generate secret and charset

This commit is contained in:
Alejandro Celaya
2019-02-16 22:53:49 +01:00
parent fd7f1b32dd
commit c0130c997a
4 changed files with 12 additions and 6 deletions

View File

@@ -10,6 +10,7 @@ use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use function sprintf;
/** @deprecated */
class GenerateSecretCommand extends Command
{
use StringUtilsTrait;
@@ -20,7 +21,10 @@ class GenerateSecretCommand extends Command
{
$this
->setName(self::NAME)
->setDescription('[DEPRECATED] Generates a random secret string that can be used for JWT token encryption');
->setDescription('[DEPRECATED] Generates a random secret string that can be used for JWT token encryption')
->setHelp(
'<fg=red;options=bold>This command is deprecated. Better leave shlink generate the secret key.</>'
);
}
protected function execute(InputInterface $input, OutputInterface $output): void