*/ class KVDeliveryExecutionCounterService extends DeliveryExecutionCounterService { /** * @param $statusUri * @throws \oat\oatbox\service\exception\InvalidServiceManagerException */ public function refresh($statusUri) { $persistence = $this->getPersistence(); /** @var DeliveryMonitoringService $deliveryMonitoring */ $deliveryMonitoring = $this->getServiceManager()->get(DeliveryMonitoringService::SERVICE_ID); $newValue = $deliveryMonitoring->count([ [DeliveryMonitoringService::STATUS => $statusUri], ]); $persistence->set($this->getStatusKey($statusUri), $newValue); } }