WorkspaceCommandController
class WorkspaceCommandController extends CommandController (View source)
The Workspace Command Controller
Properties
protected PublishingService | $publishingService | ||
protected WorkspaceRepository | $workspaceRepository | ||
protected UserService | $userService |
Methods
Publish changes of a workspace
Discard changes in workspace
Create a new workspace
Deletes a workspace
Rebase a workspace
Display a list of existing workspaces
Details
void
publishCommand(string $workspace, string $targetWorkspace = null, 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, bool $verbose = false, bool $dryRun = false)
Discard changes in workspace
This command discards all modified, created or deleted nodes in the specified workspace.
void
createCommand(string $workspace, string $baseWorkspace = 'live', string $title = null, string $description = null, string $owner = '')
Create a new workspace
This command creates a new workspace.
void
deleteCommand(string $workspace, bool $force = false)
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)
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()
Display a list of existing workspaces