示例#1
0
 /**
  * {@inheritDoc}
  */
 public function getSearchMetadataFactory($key)
 {
     return $this->storageManager->getSearchClient($key)->getSearchMetadataFactory();
 }
示例#2
0
文件: Store.php 项目: as3io/modlr
 /**
  * Determines the persister to use for the provided model key.
  *
  * @param   string  $typeKey    The model type key.
  * @return  PersisterInterface
  */
 public function getPersisterFor($typeKey)
 {
     $metadata = $this->getMetadataForType($typeKey);
     return $this->storageManager->getPersister($metadata->persistence->getKey());
 }