示例#1
0
文件: Loader.php 项目: swissup/core
 /**
  * Load Swissup components information, using local and remote data
  *
  * @return array
  */
 public function load()
 {
     if ($this->isLoaded()) {
         return $this->items;
     }
     $this->setIsLoaded(true);
     $this->items = array_replace_recursive($this->localLoader->load(), $this->remoteLoader->load());
     return $this->items;
 }
示例#2
0
文件: Module.php 项目: swissup/core
 public function getRemote()
 {
     $remoteData = $this->remoteComponents->getItemById($this->getId());
     if (!$remoteData) {
         return false;
     }
     return new \Magento\Framework\DataObject($remoteData);
 }