File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed
setup/src/Magento/Setup/Module/Di/Code/Scanner Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 446
446
<preference for =" \Magento\Catalog\Api\CategoryLinkManagementInterface" type =" \Magento\Catalog\Model\CategoryLinkManagement" />
447
447
<preference for =" Magento\Catalog\Api\Data\ProductWebsiteLinkInterface" type =" Magento\Catalog\Model\ProductWebsiteLink" />
448
448
<preference for =" Magento\Catalog\Api\ProductWebsiteLinkRepositoryInterface" type =" Magento\Catalog\Model\ProductWebsiteLinkRepository" />
449
- <preference for =" \Magento\Catalog\Api\CategoryLinkRepositoryInterface" type =" \ Magento\Catalog\Model\CategoryLinkRepository" />
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 73
73
</argument >
74
74
</arguments >
75
75
</type >
76
- <preference for =" \Magento\Downloadable\Api\LinkRepositoryInterface" type =" \ Magento\Downloadable\Model\LinkRepository" />
77
- <preference for =" \Magento\Downloadable\Api\SampleRepositoryInterface" type =" \ Magento\Downloadable\Model\SampleRepository" />
76
+ <preference for =" \Magento\Downloadable\Api\LinkRepositoryInterface" type =" Magento\Downloadable\Model\LinkRepository" />
77
+ <preference for =" \Magento\Downloadable\Api\SampleRepositoryInterface" type =" Magento\Downloadable\Model\SampleRepository" />
78
78
<preference for =" \Magento\Downloadable\Api\Data\LinkInterface" type =" \Magento\Downloadable\Model\Link" />
79
79
<preference for =" \Magento\Downloadable\Api\Data\SampleInterface" type =" \Magento\Downloadable\Model\Sample" />
80
80
<preference for =" \Magento\Downloadable\Api\Data\File\ContentInterface" type =" \Magento\Downloadable\Model\File\Content" />
Original file line number Diff line number Diff line change 22
22
<preference for =" Magento\Quote\Api\CouponManagementInterface" type =" Magento\Quote\Model\CouponManagement" />
23
23
<preference for =" Magento\Quote\Api\CartManagementInterface" type =" Magento\Quote\Model\QuoteManagement" />
24
24
<preference for =" Magento\Authorization\Model\UserContextInterface" type =" Magento\Authorization\Model\CompositeUserContext" />
25
- <preference for =" Magento\Quote\Api\CartTotalRepositoryInterface" type =" \ Magento\Quote\Model\Cart\CartTotalRepository" />
25
+ <preference for =" Magento\Quote\Api\CartTotalRepositoryInterface" type =" Magento\Quote\Model\Cart\CartTotalRepository" />
26
26
<preference for =" Magento\Quote\Api\CartTotalManagementInterface" type =" \Magento\Quote\Model\Cart\CartTotalManagement" />
27
27
<preference for =" Magento\Quote\Api\Data\TotalsInterface" type =" \Magento\Quote\Model\Cart\Totals" />
28
28
<preference for =" Magento\Quote\Api\Data\TotalSegmentInterface" type =" \Magento\Quote\Model\Cart\TotalSegment" />
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