setDescription('Import Destination Data Events'); $this->setHelp('Destination Data Events are imported from given configuration record.'); $this->addArgument( 'configurationUid', InputArgument::REQUIRED, 'UID of the configuration to import' ); } protected function execute(InputInterface $input, OutputInterface $output): int { Bootstrap::initializeBackendAuthentication(); $configurationUid = $input->getArgument('configurationUid'); if (is_numeric($configurationUid)) { $configurationUid = (int)$configurationUid; } else { throw new Exception('No numeric uid for configuration provided.', 1643267138); } $import = $this->importFactory->createFromUid( $configurationUid ); return $this->destinationDataImportService->import( $import ); } }