public function unScheduleBackupJob() { $logfileName = $this->configService->getLogfileName(); $date = date('Y-m-d H:i:s e'); $this->configService->unregister($this->scheduledBackupJob); file_put_contents($logfileName, "[{$date}] " . $this->trans->t('Backup job removed') . "\n", FILE_APPEND); }