Skip to content

Commit 5772e09

Browse files
committed
moved product searching into separate query
1 parent 49ac00a commit 5772e09

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/Component/ClassExtension/ClassExtensionRegistry.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,22 @@ protected function getOtherClassesExtensionMap(): array
6868
}
6969
}
7070

71+
$finder = Finder::create()
72+
->files()
73+
->ignoreUnreadableDirs()
74+
->in($this->frameworkRootDir . '/../frontend-api/src')
75+
->name('/.*\.php/');
76+
77+
/** @var \Symfony\Component\Finder\SplFileInfo $file */
78+
foreach ($finder as $file) {
79+
$frontendApiClassFqcn = $this->getFqcn($file->getPathname());
80+
$projectClassFqcn = str_replace('Shopsys\FrontendApiBundle', 'App\FrontendApi', $frontendApiClassFqcn);
81+
82+
if (class_exists($projectClassFqcn)) {
83+
$otherClassesMap[$frontendApiClassFqcn] = $projectClassFqcn;
84+
}
85+
}
86+
7187
return $otherClassesMap;
7288
}
7389

0 commit comments

Comments
 (0)