Skip to content

Commit

Permalink
fix: indexer config loading for resource-layout channels
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed May 15, 2024
1 parent 352666c commit 7b713ed
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Service/Indexer/IndexerConfigurationLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(
*/
public function loadAll(): array
{
$dir = $this->resourceChannel->baseDir . '/indexer';
$dir = $this->resourceChannel->configDir . '/indexer';
if (!is_dir($dir)) {
return [];
}
Expand All @@ -38,7 +38,7 @@ public function loadAll(): array

private function getFile(string $source): string
{
return $this->resourceChannel->baseDir .
return $this->resourceChannel->configDir .
'/indexer/' . $source . '.php';
}

Expand Down
1 change: 1 addition & 0 deletions test/Console/Command/DumpIndexDocumentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function setUp(): void
'',
'',
'',
'',
'test',
[]
);
Expand Down
1 change: 1 addition & 0 deletions test/Console/Command/IndexerInternalResourceUpdateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function setUp(): void
'',
'',
'',
'',
'test',
[]
);
Expand Down
1 change: 1 addition & 0 deletions test/Console/Command/IndexerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function setUp(): void
'',
'',
'',
'',
'test',
[]
);
Expand Down
1 change: 1 addition & 0 deletions test/Console/Command/MoreLikeThisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function setUp(): void
'',
'',
'',
'',
'test',
[]
);
Expand Down
1 change: 1 addition & 0 deletions test/Console/Command/SearchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function setUp(): void
'',
'',
'',
'',
'test',
[]
);
Expand Down
1 change: 1 addition & 0 deletions test/Console/Command/SuggestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function setUp(): void
'',
'',
'',
'',
'test',
[]
);
Expand Down
5 changes: 3 additions & 2 deletions test/Service/Indexer/IndexerConfigurationLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function testLoadAllWithConfigReturnString(): void
}

private function createLoader(
string $baseDir
string $configDir
): IndexerConfigurationLoader {
$resourceChannel = new ResourceChannel(
'',
Expand All @@ -132,9 +132,10 @@ private function createLoader(
false,
'',
'',
$baseDir,
'',
'',
$configDir,
'',
[]
);
return new IndexerConfigurationLoader($resourceChannel);
Expand Down
1 change: 1 addition & 0 deletions test/Service/Indexer/LocationFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ protected function setUp(): void
'',
$resourceDir,
'',
'',
[]
);
$this->locationFinder = new LocationFinder($resourceChannel);
Expand Down
1 change: 1 addition & 0 deletions test/Service/ResourceChannelBasedIndexNameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function setUp(): void
'',
'',
'',
'',
'test',
['en_US']
);
Expand Down

0 comments on commit 7b713ed

Please sign in to comment.