예제 #1
0
 /**
  * @param  \Heystack\Core\Storage\StorableInterface $object
  * @return mixed
  * @throws \Heystack\Core\Exception\ConfigurationException
  */
 public function write(StorableInterface $object)
 {
     $schemaIdentifier = strtolower($object->getSchemaName());
     $storedObject = $this->writeStoredDataObject($this->schemaService->getSchema($schemaIdentifier), $object);
     $this->eventService->dispatch(self::IDENTIFIER . '.' . $object->getStorableIdentifier() . '.stored', new Event($storedObject->ID));
     return $storedObject;
 }