diff --git a/src/bundle/Core/Command/ReindexCommand.php b/src/bundle/Core/Command/ReindexCommand.php index e496a32c11..f038cca0f7 100644 --- a/src/bundle/Core/Command/ReindexCommand.php +++ b/src/bundle/Core/Command/ReindexCommand.php @@ -145,7 +145,6 @@ protected function configure() InputOption::VALUE_OPTIONAL, 'Number of child processes to run in parallel for iterations, if set to "auto" it will set to number of CPU cores -1, set to "1" or "0" to disable', 'auto' - )->addOption( 'content-type', null, diff --git a/src/contracts/Search/Content/IndexerGateway.php b/src/contracts/Search/Content/IndexerGateway.php index 601b9c8738..160edfe04d 100644 --- a/src/contracts/Search/Content/IndexerGateway.php +++ b/src/contracts/Search/Content/IndexerGateway.php @@ -63,7 +63,6 @@ public function getContentWithContentTypeIdentifier(string $contentTypeIdentifie * @throws \Doctrine\DBAL\Exception */ public function countContentWithContentTypeIdentifier(string $contentTypeIdentifier): int; - } class_alias(IndexerGateway::class, 'eZ\Publish\SPI\Search\Content\IndexerGateway'); diff --git a/src/lib/Search/Legacy/Content/IndexerGateway.php b/src/lib/Search/Legacy/Content/IndexerGateway.php index b9c57b2459..2cc7e49bda 100644 --- a/src/lib/Search/Legacy/Content/IndexerGateway.php +++ b/src/lib/Search/Legacy/Content/IndexerGateway.php @@ -145,7 +145,8 @@ private function fetchIteration(ResultStatement $statement, int $iterationCount) } while (!empty($contentId)); } - public function getContentWithContentTypeIdentifier(string $contentTypeIdentifier, int $iterationCount): Generator{ + public function getContentWithContentTypeIdentifier(string $contentTypeIdentifier, int $iterationCount): Generator + { $query = $this->buildQueryForContentWithContentTypeIdentifier($contentTypeIdentifier); yield from $this->fetchIteration($query->execute(), $iterationCount); @@ -171,7 +172,6 @@ private function buildQueryForContentWithContentTypeIdentifier(string $contentTy ->setParameter('status', ContentInfo::STATUS_PUBLISHED, ParameterType::INTEGER) ->setParameter('identifier', $contentTypeIdentifier, ParameterType::STRING); } - } class_alias(IndexerGateway::class, 'eZ\Publish\Core\Search\Legacy\Content\IndexerGateway');