/** * Reload configuration document from store. */ public function reload() { if ($this->root !== $this) { $this->root->reload(); return; } if (!isset($this->store)) { return; } if (!$this->store->touch()) { return; } try { $this->store->open(false); $this->data = $this->store->read(); } catch (StoreException $e) { } $this->store->close(); }
/** * Reload configuration document from store. * @throws AccessException If file could not be read. */ public function reload() { if ($this->root !== $this) { $this->root->reload(); return; } if (!isset($this->store)) { return; } if (!$this->store->touch()) { return; } try { $this->store->open(false); $this->data = $this->store->read(); } catch (AccessException $e) { throw new AccessException('Could not read configration: ' . $e->getMessage(), null, $e); } $this->store->close(); }