File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
app/code/Magento/Catalog/etc
setup/src/Magento/Setup/Module/Di/Code/Scanner Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 448
448
<preference for =" Magento\Catalog\Api\ProductWebsiteLinkRepositoryInterface" type =" Magento\Catalog\Model\ProductWebsiteLinkRepository" />
449
449
<preference for =" \Magento\Catalog\Api\CategoryLinkRepositoryInterface" type =" \Magento\Catalog\Model\CategoryLinkRepository" />
450
450
<preference for =" Magento\Catalog\Api\Data\ProductCustomOptionInterface" type =" Magento\Catalog\Model\Product\Option" />
451
- <preference for =" Magento\Catalog\Api\ProductCustomOptionRepositoryInterface" type =" \ Magento\Catalog\Model\Product\Option\Repository" />
451
+ <preference for =" Magento\Catalog\Api\ProductCustomOptionRepositoryInterface" type =" Magento\Catalog\Model\Product\Option\Repository" />
452
452
<preference for =" Magento\Catalog\Api\Data\ProductCustomOptionTypeInterface" type =" Magento\Catalog\Model\Product\Option\Type" />
453
453
<preference for =" Magento\Catalog\Api\ProductTierPriceManagementInterface" type =" \Magento\Catalog\Model\Product\TierPriceManagement" />
454
454
<preference for =" Magento\Catalog\Api\Data\ProductTierPriceInterface" type =" Magento\Catalog\Model\Product\TierPrice" />
Original file line number Diff line number Diff line change 3
3
* Copyright © 2016 Magento. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
6
7
namespace Magento \Setup \Module \Di \Code \Scanner ;
7
8
8
9
use Magento \Framework \Autoload \AutoloaderRegistry ;
@@ -39,6 +40,8 @@ public function collectEntities(array $files)
39
40
&& $ replacementType !== null
40
41
&& (substr ($ forType ->nodeValue , -19 ) === 'RepositoryInterface ' )
41
42
) {
43
+ // backward compatibility workaround for composer below 1.3.0
44
+ // (https://github.com/composer/composer/issues/5923)
42
45
$ nodeValue = ltrim ($ replacementType ->nodeValue , '\\' );
43
46
if (!class_exists ($ nodeValue , false )
44
47
&& !AutoloaderRegistry::getAutoloader ()->loadClass ($ nodeValue )
You can’t perform that action at this time.
0 commit comments