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 03aada2 commit 352666c
Show file tree
Hide file tree
Showing 2 changed files with 4 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->resourceDir . '/indexer';
$dir = $this->resourceChannel->baseDir . '/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->resourceDir .
return $this->resourceChannel->baseDir .
'/indexer/' . $source . '.php';
}

Expand Down
4 changes: 2 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 $resourceDir
string $baseDir
): IndexerConfigurationLoader {
$resourceChannel = new ResourceChannel(
'',
Expand All @@ -132,8 +132,8 @@ private function createLoader(
false,
'',
'',
$baseDir,
'',
$resourceDir,
'',
[]
);
Expand Down

0 comments on commit 352666c

Please sign in to comment.