translator = $translator; parent::__construct(); } protected function configure(): void { $this->setName(self::NAME) ->setDescription($this->translator->translate( 'Generates a random secret string that can be used for JWT token encryption' )); } protected function execute(InputInterface $input, OutputInterface $output): void { $secret = $this->generateRandomString(32); (new SymfonyStyle($input, $output))->success( sprintf($this->translator->translate('Secret key: "%s"'), $secret) ); } }