/**
  * Read the complete configuration
  *
  * @return array Hierarchic array with each configuration token as a key
  */
 public function readAll()
 {
     if (!$this->isCacheEnabled) {
         return $this->configIO->readAll();
     }
     $all = $this->cache->get($this->cacheType);
     $sections = $this->getAllSections();
     foreach ($sections as $section) {
         if (!isset($all[$section])) {
             $all[$section] = $this->read($section);
         }
     }
     return $all;
 }
Beispiel #2
0
 /**
  * Gets the complete configuration as a tree
  * @return array Tree like array with each configuration key token as a
  * array key
  */
 public function getAll()
 {
     return $this->data = $this->io->readAll();
 }