Skip to content

Commit

Permalink
[FIX] missing TypoScript configuration on RecordMonitor stack
Browse files Browse the repository at this point in the history
By editing records in BE TypoScript settings are not resolvable due of 
missing propagation of `TypoScriptConfiguration` object on
* `\ApacheSolrForTypo3\Solr\System\Solr\SolrConnection::buildReadService()`
* `\ApacheSolrForTypo3\Solr\System\Solr\SolrConnection::buildWriteService()`

Relates: TYPO3-Solr#3995
  • Loading branch information
dkd-kaehm committed Dec 17, 2024
1 parent bcb2521 commit 68c80d5
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Classes/System/Solr/SolrConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ class SolrConnection
*
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*
* @noinspection PhpInternalEntityUsedInspection
*/
public function __construct(
Endpoint $readEndpoint,
Expand Down Expand Up @@ -167,7 +169,11 @@ protected function buildReadService(): SolrReadService
$endpointKey = 'read';
$client = $this->getClient($endpointKey);
$this->initializeClient($client, $endpointKey);
return GeneralUtility::makeInstance(SolrReadService::class, $client);
return GeneralUtility::makeInstance(
SolrReadService::class,
$client,
$this->configuration,
);
}

/**
Expand All @@ -190,7 +196,11 @@ protected function buildWriteService(): SolrWriteService
$endpointKey = 'write';
$client = $this->getClient($endpointKey);
$this->initializeClient($client, $endpointKey);
return GeneralUtility::makeInstance(SolrWriteService::class, $client);
return GeneralUtility::makeInstance(
SolrWriteService::class,
$client,
$this->configuration,
);
}

/**
Expand Down

0 comments on commit 68c80d5

Please sign in to comment.