protected function setProcessedUpgrade($upgrade) { $processed_upgrades = $this->getProcessedUpgrades(); $processed_upgrades[] = $upgrade; $processed_upgrades = array_unique($processed_upgrades); return $this->config->save('processed_upgrades', $processed_upgrades); }