src/Sulu/Component/Content/Document/Subscriber/WorkflowStageSubscriber.php
public function setWorkflowStageToPublished(PublishEvent $event)
    {
        $document = $event->getDocument();

        if (!$this->supports($event)) {
            return;
        }

        $this->setWorkflowStage($document, $event->getAccessor(), WorkflowStage::PUBLISHED, $event->getLocale(), true);
    }
public function setWorkflowStageToPublished(PublishEvent $event)
    {
        $document = $event->getDocument();

        if (!$this->supports($event)) {
            return;
        }

        $this->setWorkflowStage($document, $event->getAccessor(), WorkflowStage::PUBLISHED, $event->getLocale(), true);
    }
public function setWorkflowStageToPublished ( PublishEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ this -> supports ( $ event ) ) { return ; } $ this -> setWorkflowStage ( $ document , $ event -> getAccessor ( ) , WorkflowStage :: PUBLISHED , $ event -> getLocale ( ) , true ) ; }
Sets the workflow stage for the passed document to published.

@param PublishEvent $event
Sets the workflow stage for the passed document to published .