private function dispatch(Content $content, $type, $legacyType)
    {
        $event = new StorageEvent($content, ['contenttype' => $content->getContenttype(), 'create' => false]);
        try {
            $this->dispatcher->dispatch("timed.$type", $event);
        } catch (\Exception $e) {
            $this->systemLogger->critical(sprintf('Dispatch handling failed for %s.', $content->getContenttype()), ['event' => 'exception', 'exception' => $e]);
        }
        try {
            /** @deprecated Deprecated since 3.1, to be removed in 4.0. */
            $this->dispatcher->dispatch("timed.$legacyType", $event);
        } catch (\Exception $e) {
            $this->systemLogger->critical(sprintf('Dispatch handling failed for %s.', $content->getContenttype()), ['event' => 'exception', 'exception' => $e]);
        }
    }
private function dispatch(Content $content, $type, $legacyType)
    {
        $event = new StorageEvent($content, ['contenttype' => $content->getContenttype(), 'create' => false]);
        try {
            $this->dispatcher->dispatch("timed.$type", $event);
        } catch (\Exception $e) {
            $this->systemLogger->critical(sprintf('Dispatch handling failed for %s.', $content->getContenttype()), ['event' => 'exception', 'exception' => $e]);
        }
        try {
            /** @deprecated Deprecated since 3.1, to be removed in 4.0. */
            $this->dispatcher->dispatch("timed.$legacyType", $event);
        } catch (\Exception $e) {
            $this->systemLogger->critical(sprintf('Dispatch handling failed for %s.', $content->getContenttype()), ['event' => 'exception', 'exception' => $e]);
        }
    }
private function dispatch ( Content $ content , $ type , $ legacyType ) { $ event = new StorageEvent ( $ content , [ 'contenttype' => $ content -> getContenttype ( ) , 'create' => false ] ) ; try { $ this -> dispatcher -> dispatch ( "timed.$type" , $ event ) ; } catch ( \ Exception $ e ) { $ this -> systemLogger -> critical ( sprintf ( 'Dispatch handling failed for %s.' , $ content -> getContenttype ( ) ) , [ 'event' => 'exception' , 'exception' => $ e ] ) ; } try { /** @deprecated Deprecated since 3.1, to be removed in 4.0. */ $ this -> dispatcher -> dispatch ( "timed.$legacyType" , $ event ) ; } catch ( \ Exception $ e ) { $ this -> systemLogger -> critical ( sprintf ( 'Dispatch handling failed for %s.' , $ content -> getContenttype ( ) ) , [ 'event' => 'exception' , 'exception' => $ e ] ) ; } }
Dispatch the update event.

@param Content $content
@param string  $type
@param string  $legacyType
Dispatch the update event .