File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
setup/src/Magento/Setup/Module/Di/Code/Scanner Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,8 @@ public function collectEntities(array $files)
39
39
&& $ replacementType !== null
40
40
&& (substr ($ forType ->nodeValue , -19 ) == 'RepositoryInterface ' )
41
41
) {
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 )) {
48
44
$ persistor = str_replace ('\\Repository ' , 'InterfacePersistor ' , $ replacementType ->nodeValue );
49
45
$ factory = str_replace ('\\Repository ' , 'InterfaceFactory ' , $ replacementType ->nodeValue );
50
46
$ searchResultFactory
You can’t perform that action at this time.
0 commit comments