/**
  * Object constructor
  *
  * @param CommonMarkPayloadProcessorInterface $payloadProcessor Payload processor
  * @param RepositoryLocatorInterface $locator Object repository locator
  * @param string $payload Object payload
  * @param array $propertyData Property data
  */
 public function __construct(CommonMarkPayloadProcessorInterface $payloadProcessor, RepositoryLocatorInterface $locator, $payload, array $propertyData)
 {
     $this->payloadProcessor = $payloadProcessor;
     $this->payloadProcessor->setObject($this);
     parent::__construct($locator, $payload, $propertyData);
 }
Example #2
0
 /**
  * Post persistence hook
  *
  * @return void
  */
 protected function postPersist()
 {
     parent::postPersist();
     // Call the payload processor post persistence callback
     $this->payloadProcessor->persist();
 }