Skip to content

Commit 80b4eb3

Browse files
committed
FEATURE: add publish all command
1 parent 2e9840f commit 80b4eb3

2 files changed

Lines changed: 24 additions & 3 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace Flowpack\DecoupledContentStore\Command;
5+
6+
use Flowpack\DecoupledContentStore\ContentReleaseManager;
7+
use Neos\Flow\Annotations as Flow;
8+
use Neos\Flow\Cli\CommandController;
9+
10+
class ContentStorePublishCommandController extends CommandController
11+
{
12+
/**
13+
* @Flow\Inject
14+
* @var ContentReleaseManager
15+
*/
16+
protected $contentReleaseManager;
17+
18+
public function allCommand()
19+
{
20+
$this->contentReleaseManager->cancelAllRunningContentReleases();
21+
$this->contentReleaseManager->startFullContentRelease();
22+
}
23+
24+
}

Classes/Controller/BackendController.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ public function removeAction(string $contentReleaseIdentifier, string $redisInst
133133

134134
$this->contentReleaseCleaner->removeRelease($contentReleaseIdentifierToRemove, $redisInstanceIdentifier, $logger);
135135

136-
$redis = $this->redisClientManager->getRedis($redisInstanceIdentifier);
137-
$redis->zRem('contentStore:registeredReleases', $contentReleaseIdentifier);
138-
139136
$this->redirect('index', null, null, ['contentStore' => $redisInstanceIdentifier->getIdentifier()]);
140137
}
141138

0 commit comments

Comments
 (0)