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