Пример #1
0
 /**
  * @param \Generated\Shared\Transfer\SearchConfigCacheTransfer $searchConfigCacheTransfer
  *
  * @return void
  */
 public function save(SearchConfigCacheTransfer $searchConfigCacheTransfer)
 {
     $searchConfigCacheKey = $this->getSearchConfigCacheKey();
     $this->storageClient->set($searchConfigCacheKey, $searchConfigCacheTransfer->toArray());
 }
Пример #2
0
 /**
  * @param \Generated\Shared\Transfer\SearchConfigCacheTransfer $searchConfigCacheTransfer
  *
  * @return void
  */
 protected function setDynamicSorts(SearchConfigCacheTransfer $searchConfigCacheTransfer)
 {
     foreach ($searchConfigCacheTransfer->getSortConfigs() as $sortConfigTransfer) {
         $this->sortConfigBuilder->addSort($sortConfigTransfer);
     }
 }