Skip to content

Commit

Permalink
refactor: DefaultSchema21DocumentEnricher -> DocumentEnricherSiteKitS…
Browse files Browse the repository at this point in the history
…chema2x
  • Loading branch information
sitepark-veltrup committed Jan 18, 2024
1 parent 183eab0 commit 242c169
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:

Atoolo\Search\Console\Command\Indexer:
arguments:
- !tagged_iterator { tag: 'atoolo.search.indexer.documentEnricher' }
- !tagged_iterator { tag: 'atoolo.search.indexer.documentEnricher.schema2x' }

Atoolo\Search\Console\Application:
public: true
Expand Down
4 changes: 2 additions & 2 deletions src/Console/Command/Indexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Atoolo\Search\Dto\Indexer\IndexerParameter;
use Atoolo\Search\Service\Indexer\IndexingAborter;
use Atoolo\Search\Service\Indexer\LocationFinder;
use Atoolo\Search\Service\Indexer\SiteKit\DefaultSchema21DocumentEnricher;
use Atoolo\Search\Service\Indexer\SiteKit\DefaultSchema2xDocumentEnricher;
use Atoolo\Search\Service\Indexer\SiteKit\SubDirTranslationSplitter;
use Atoolo\Search\Service\Indexer\SolrIndexer;
use Atoolo\Search\Service\SolrParameterClientFactory;
Expand Down Expand Up @@ -171,7 +171,7 @@ protected function createIndexer(): SolrIndexer
$navigationLoader = new SiteKitNavigationHierarchyLoader(
$resourceLoader
);
$schema21 = new DefaultSchema21DocumentEnricher(
$schema21 = new DefaultSchema2xDocumentEnricher(
$navigationLoader
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
use Atoolo\Search\Service\Indexer\IndexDocument;
use Atoolo\Search\Service\Indexer\IndexSchema2xDocument;
use DateTime;
use Solarium\Core\Query\DocumentInterface;

/**
* @implements DocumentEnricher<IndexSchema2xDocument>
*/
class DefaultSchema21DocumentEnricher implements DocumentEnricher
class DefaultSchema2xDocumentEnricher implements DocumentEnricher
{
public function __construct(
private readonly SiteKitNavigationHierarchyLoader $navigationLoader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Atoolo\Search\Service\Indexer\IndexSchema2xDocument;
use PHPUnit\Framework\TestCase;

class IndexSchema21DocumentTest extends TestCase
class IndexSchema2xDocumentTest extends TestCase
{
public function testGetFields(): void
{
Expand Down

0 comments on commit 242c169

Please sign in to comment.