Commit 2d32b663 authored by Oliver Bartsch's avatar Oliver Bartsch

[TASK] Move update request into key service

parent fe375218
Pipeline #10536 failed with stages
in 3 minutes and 15 seconds
......@@ -44,10 +44,6 @@ class ExtensionRepository extends AbstractRepository
$queryBuilder->set($name, $value);
}
if (isset($fields['composer_name'])) {
ValidComposerNameFileService::setRegistryFlag(1);
}
return (int)$this->byUniqueKey($queryBuilder->update($this->tableName), $key)->execute();
}
......
......@@ -16,6 +16,7 @@ use ApacheSolrForTypo3\Solr\GarbageCollector;
use ApacheSolrForTypo3\Solr\IndexQueue\Queue;
use T3o\TerFe2\Domain\Repository\ExtensionRepository as ExtbaseExtensionRepository;
use T3o\TerFe2\Service\ExtensionIndexService;
use T3o\TerFe2\Service\ValidComposerNameFileService;
use T3o\TerRest\Repository\ExtensionRepository;
use T3o\TerRest\Repository\FrontendUserRepository;
use T3o\TerRest\Service\ConfigurationService;
......@@ -56,6 +57,12 @@ abstract class AbstractService
return $this;
}
protected function requestUpdateOfValidComposerNamesFile(): self
{
ValidComposerNameFileService::setRegistryFlag(1);
return $this;
}
protected function flushCaches(): self
{
GeneralUtility::makeInstance(CacheManager::class)->flushCaches();
......
......@@ -103,6 +103,10 @@ class KeyService extends AbstractService
$formDataStore = $formDataStore->withProperty(new IntegerData('tags', [], $tagsCount));
}
if ($formDataStore->hasProperty('composer_name')) {
$this->requestUpdateOfValidComposerNamesFile();
}
foreach ($formDataStore->getProperties() as $property) {
$fieldsToUpdate[$property->getName()] = $property->getValue();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment