protected function getIndexerByItem($indexingConfigurationName, TypoScriptConfiguration $configuration)
    {
        $indexerClass = $configuration->getIndexQueueIndexerByConfigurationName($indexingConfigurationName);
        $indexerConfiguration = $configuration->getIndexQueueIndexerConfigurationByConfigurationName($indexingConfigurationName);

        $indexer = GeneralUtility::makeInstance($indexerClass, /** @scrutinizer ignore-type */ $indexerConfiguration);
        if (!($indexer instanceof Indexer)) {
            throw new \RuntimeException(
                'The indexer class "' . $indexerClass . '" for indexing configuration "' . $indexingConfigurationName . '" is not a valid indexer. Must be a subclass of ApacheSolrForTypo3\Solr\IndexQueue\Indexer.',
                1260463206
            );
        }

        return $indexer;
    }
protected function getIndexerByItem($indexingConfigurationName, TypoScriptConfiguration $configuration)
    {
        $indexerClass = $configuration->getIndexQueueIndexerByConfigurationName($indexingConfigurationName);
        $indexerConfiguration = $configuration->getIndexQueueIndexerConfigurationByConfigurationName($indexingConfigurationName);

        $indexer = GeneralUtility::makeInstance($indexerClass, /** @scrutinizer ignore-type */ $indexerConfiguration);
        if (!($indexer instanceof Indexer)) {
            throw new \RuntimeException(
                'The indexer class "' . $indexerClass . '" for indexing configuration "' . $indexingConfigurationName . '" is not a valid indexer. Must be a subclass of ApacheSolrForTypo3\Solr\IndexQueue\Indexer.',
                1260463206
            );
        }

        return $indexer;
    }
protected function getIndexerByItem ( $ indexingConfigurationName , TypoScriptConfiguration $ configuration ) { $ indexerClass = $ configuration -> getIndexQueueIndexerByConfigurationName ( $ indexingConfigurationName ) ; $ indexerConfiguration = $ configuration -> getIndexQueueIndexerConfigurationByConfigurationName ( $ indexingConfigurationName ) ; $ indexer = GeneralUtility :: makeInstance ( $ indexerClass , /** @scrutinizer ignore-type */ $ indexerConfiguration ) ; if ( ! ( $ indexer instanceof Indexer ) ) { throw new \ RuntimeException ( 'The indexer class "' . $ indexerClass . '" for indexing configuration "' . $ indexingConfigurationName . '" is not a valid indexer. Must be a subclass of ApacheSolrForTypo3\Solr\IndexQueue\Indexer.' , 1260463206 ) ; } return $ indexer ; }
A factory method to get an indexer depending on an item's configuration.

By default all items are indexed using the default indexer
(ApacheSolrForTypo3\Solr\IndexQueue\Indexer) coming with EXT:solr. Pages by default are
configured to be indexed through a dedicated indexer
(ApacheSolrForTypo3\Solr\IndexQueue\PageIndexer). In all other cases a dedicated indexer
can be specified through TypoScript if needed.

@param string $indexingConfigurationName Indexing configuration name.
@param TypoScriptConfiguration $configuration
@return Indexer
A factory method to get an indexer depending on an item s configuration .