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