예제 #1
0
 protected function addConfigList($full_name, &$list)
 {
     if (!in_array($full_name, $list)) {
         array_unshift($list, $full_name);
         $value = $this->extensionStorages->read($full_name);
         if (isset($value['dependencies']['config'])) {
             foreach ($value['dependencies']['config'] as $config_name) {
                 $this->addConfigList($config_name, $list);
             }
         }
     }
 }
예제 #2
0
 protected function addConfigList($full_name, &$list)
 {
     $index = array_search($full_name, $list);
     if ($index !== FALSE) {
         unset($list[$index]);
     }
     array_unshift($list, $full_name);
     $value = $this->extensionStorages->read($full_name);
     if (isset($value['dependencies']['config'])) {
         foreach ($value['dependencies']['config'] as $config_name) {
             $this->addConfigList($config_name, $list);
         }
     }
 }