paymentResource = $paymentResource; parent::__construct(); } /** * {@inheritdoc} */ protected function configure() { $this->setName(self::NAME) ->setDescription( 'Re-encrypts encrypted credit card data with latest encryption cipher.' ); parent::configure(); } /** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { try { $this->paymentResource->reEncryptCreditCardNumbers(); } catch (\Exception $e) { $output->writeln('' . $e->getMessage() . ''); return Cli::RETURN_FAILURE; } return Cli::RETURN_SUCCESS; } }