Bundle/ViewReferenceBundle/Listener/ViewReferenceListener.php
public function updateViewReference(ViewReferenceEvent $event)
    {
        $view = $event->getView();
        if ($viewReference = $this->viewReferenceBuilder->buildViewReference($view, $this->em)) {
            $this->viewReferenceManager->saveReference($viewReference);
        }
    }
public function updateViewReference(ViewReferenceEvent $event)
    {
        $view = $event->getView();
        if ($viewReference = $this->viewReferenceBuilder->buildViewReference($view, $this->em)) {
            $this->viewReferenceManager->saveReference($viewReference);
        }
    }
public function updateViewReference ( ViewReferenceEvent $ event ) { $ view = $ event -> getView ( ) ; if ( $ viewReference = $ this -> viewReferenceBuilder -> buildViewReference ( $ view , $ this -> em ) ) { $ this -> viewReferenceManager -> saveReference ( $ viewReference ) ; } }
This method is call when a viewReference need to be update.

@param ViewReferenceEvent $event
This method is call when a viewReference need to be update .