Skip to content

Commit

Permalink
Update HashTokenCommandController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsunet committed Sep 16, 2019
1 parent f7faece commit f5f99d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Classes/Command/HashTokenCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@ public function createWorkspacePreviewTokenCommand(string $workspaceName)
$this->persistenceManager->persistAll();
}

public function createForAllPossibleWorkspaces()
/**
* Create preview tokens for all internal and private workspaces (not personal though)
*/
public function createForAllPossibleWorkspacesCommand()
{
/** @var Workspace $workspace */
foreach ($this->workspaceRepository->findAll() as $workspace) {
if ($workspaceName->isPrivateWorkspace() || $workspace->isInternalWorkspace()) {
if ($workspace->isPrivateWorkspace() || $workspace->isInternalWorkspace()) {
$this->createAndOutputWorkspacePreviewToken($workspace->getName());
}
}
Expand Down

0 comments on commit f5f99d7

Please sign in to comment.