예제 #1
0
 /**
  * {@inheritDoc}
  */
 public function getPersistenceMetadataFactory($key)
 {
     return $this->storageManager->getPersister($key)->getPersistenceMetadataFactory();
 }
예제 #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());
 }