Skip to content

Commit 8a674f6

Browse files
committed
MAGETWO-37003: Create and Process PR
- Fixed the build failure for functional test.
1 parent 381a3d7 commit 8a674f6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

setup/src/Magento/Setup/Module/Di/Code/Scanner/RepositoryScanner.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,8 @@ public function collectEntities(array $files)
3939
&& $replacementType !== null
4040
&& (substr($forType->nodeValue, -19) == 'RepositoryInterface')
4141
) {
42-
if (!$this->useAutoload) {
43-
$classExists = class_exists($replacementType->nodeValue, $this->useAutoload);
44-
} else {
45-
$classExists = AutoloaderRegistry::getAutoloader()->loadClass($replacementType->nodeValue);
46-
}
47-
if (!$classExists) {
42+
if (!class_exists($replacementType->nodeValue, false)
43+
&& !AutoloaderRegistry::getAutoloader()->loadClass($replacementType->nodeValue)) {
4844
$persistor = str_replace('\\Repository', 'InterfacePersistor', $replacementType->nodeValue);
4945
$factory = str_replace('\\Repository', 'InterfaceFactory', $replacementType->nodeValue);
5046
$searchResultFactory

0 commit comments

Comments
 (0)