public function iPublishTheWorkspace($sourceWorkspaceName)
{
if ($this->isolated === true) {
$this->callStepInSubProcess(__METHOD__, sprintf(' %s %s', 'string', escapeshellarg($sourceWorkspaceName)));
} else {
/**
* FIXME: Workspace properties from the previous workspace
* like fallback dimensions are not available from this point forward.
* The method ``iPublishTheNode`` keeps all this information intact.
**/
$sourceContext = $this->getContextForProperties(array('Workspace' => $sourceWorkspaceName));
$sourceWorkspace = $sourceContext->getWorkspace();
$liveContext = $this->getContextForProperties(array('Workspace' => 'live'));
$liveWorkspace = $liveContext->getWorkspace();
$sourceWorkspace->publish($liveWorkspace);
$this->objectManager->get(\Neos\Flow\Persistence\PersistenceManagerInterface::class)->persistAll();
$this->resetNodeInstances();
}
}