globalConfig = $globalConfig; $this->entityGrid = $entityGrid; } /** * Handles synchronous updating order entity in grid. * * Works only if asynchronous grid indexing is disabled * in global settings. * * @param int $orderId * @return void */ public function update($orderId) { if (!$this->globalConfig->getValue('dev/grid/async_indexing')) { $this->entityGrid->refresh($orderId); } } }