WorkspaceCommandController
class WorkspaceCommandController extends CommandController (View source)
The Workspace Command Controller
Properties
protected UserService | $userService | ||
protected | $persistenceManager | ||
protected | $contentRepositoryRegistry |
Methods
Publish changes of a workspace
Discard changes in workspace
No description
Create a new workspace
Deletes a workspace
Rebase a workspace
Display a list of existing workspaces
Details
void
publishCommand(string $workspace, string $contentRepositoryIdentifier = 'default', bool $verbose = false, bool $dryRun = false)
Publish changes of a workspace
This command publishes all modified, created or deleted nodes in the specified workspace to its base workspace. If a target workspace is specified, the content is published to that workspace instead.
void
discardCommand(string $workspace, string $contentRepositoryIdentifier = 'default', bool $verbose = false, bool $dryRun = false)
Discard changes in workspace
This command discards all modified, created or deleted nodes in the specified workspace.
void
createRootCommand(string $name, string $contentRepositoryIdentifier = 'default')
No description
void
createCommand(string $workspace, string $baseWorkspace = 'live', string $title = null, string $description = null, string $owner = '', string $contentRepositoryIdentifier = 'default')
Create a new workspace
This command creates a new workspace.
void
deleteCommand(string $workspace, bool $force = false, string $contentRepositoryIdentifier = 'default')
Deletes a workspace
This command deletes a workspace. If you only want to empty a workspace and not delete the workspace itself, use workspace:discard instead.
void
rebaseCommand(string $workspace, string $baseWorkspace, string $contentRepositoryIdentifier = 'default')
Rebase a workspace
This command sets a new base workspace for the specified workspace. Note that doing so will put the possible changes contained in the workspace to be rebased into a different context and thus might lead to unintended results when being published.
void
listCommand(string $contentRepositoryIdentifier = 'default')
Display a list of existing workspaces