Commit 9166a4b0 authored by Thomas Löffler's avatar Thomas Löffler

Add queue update for extension object changes

parent c6ead7ed
Pipeline #9683 passed with stages
in 5 minutes and 14 seconds
......@@ -14,6 +14,9 @@ namespace T3o\TerFe2\Domain\Repository;
* The TYPO3 project - inspiring people to share!
*/
use ApacheSolrForTypo3\Solr\IndexQueue\Queue;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
* Repository for \T3o\TerFe2\Domain\Model\Extension
*/
......@@ -201,4 +204,18 @@ class ExtensionRepository extends \T3o\TerFe2\Domain\Repository\AbstractReposito
return $query->execute();
}
/**
* Add update to solr index for any changes on that object
*/
public function update($modifiedObject): void
{
parent::update($modifiedObject);
GeneralUtility::makeInstance(Queue::class)->updateItem(
'ter_extension',
$modifiedObject->getUid(),
time()
);
}
}
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