public function execute(InputInterface $input, OutputInterface $output) { try { $objSfInbound = new SfInboundService($this->getContainer(), $output); $objSfInbound->run(); } catch (\Exception $objException) { $this->output->writeln($objException->getMessage()); } }
/** * Get Order * @Rest\Get( "/sync/database" ) */ public function getDatabaseSyncAction() { $objSfInbound = new SfInboundService($this->container); $objSfInbound->run(); return ['status_updates' => $objSfInbound->getOutput()]; }