Skip to content

Commit 56493ee

Browse files
dkd-friedrichdkd-kaehm
authored andcommitted
[BUGFIX] Allow initializer interface in event
AfterIndexQueueHasBeenInitializedEvent requires AbstractInitializer instead of the interface IndexQueueInitializer, this prevents the usage of own implementations not based on the abstract initializer, e.g. an initializer for external data. By requiring the interface instead of the AbstractInitializer this issue is fixed. Resolves: #4402
1 parent 5df9dea commit 56493ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Classes/Event/IndexQueue/AfterIndexQueueHasBeenInitializedEvent.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace ApacheSolrForTypo3\Solr\Event\IndexQueue;
1919

2020
use ApacheSolrForTypo3\Solr\Domain\Site\Site;
21-
use ApacheSolrForTypo3\Solr\IndexQueue\Initializer\AbstractInitializer;
21+
use ApacheSolrForTypo3\Solr\IndexQueue\Initializer\IndexQueueInitializer;
2222

2323
/**
2424
* PSR-14 Event which is fired after a index queue has been (re-) initialized.
@@ -29,15 +29,15 @@
2929
final class AfterIndexQueueHasBeenInitializedEvent
3030
{
3131
public function __construct(
32-
private readonly AbstractInitializer $initializer,
32+
private readonly IndexQueueInitializer $initializer,
3333
private readonly Site $site,
3434
private readonly string $indexingConfigurationName,
3535
private readonly string $type,
3636
private readonly array $indexingConfiguration,
3737
private bool $isInitialized,
3838
) {}
3939

40-
public function getInitializer(): AbstractInitializer
40+
public function getInitializer(): IndexQueueInitializer
4141
{
4242
return $this->initializer;
4343
}

0 commit comments

Comments
 (0)