Skip to content

Commit d26be56

Browse files
Pradeep KanakaPradeep Kanaka
authored andcommitted
Fix undefined class issue
1 parent e951add commit d26be56

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

app/code/Meta/Catalog/Plugin/FacebookCatalogUpdateFullReindexPlugin.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,25 @@ public function beforeReindexAll(Indexer $subject)
120120
public function getChangelogBatchWalkerInstance()
121121
{
122122
if ($this->isMagentoVersionLessThan("2.4.7")) {
123-
return $this->objectManager->create(
123+
$changeLogWalkerFactory = $this->objectManager->create(
124124
\Magento\Framework\Mview\View\ChangeLogBatchWalkerFactory::class // @phpstan-ignore-line
125125
);
126+
return $changeLogWalkerFactory->create(
127+
\Magento\Framework\Mview\View\ChangeLogBatchWalker::class // @phpstan-ignore-line
128+
);
126129
}
127-
return $this->objectManager->create(
130+
131+
$changelogWalkerFactory = $this->objectManager->create(
128132
\Magento\Framework\Mview\View\ChangelogBatchWalkerFactory::class // @phpstan-ignore-line
129133
);
134+
return $changelogWalkerFactory->create(
135+
\Magento\Framework\Mview\View\ChangelogBatchWalker::class // @phpstan-ignore-line
136+
);
130137
}
131138

132139
/**
133140
* Returns true if the version is lower than the expected version
134-
*
141+
*
135142
* @param $version
136143
* @return bool
137144
*/

0 commit comments

Comments
 (0)