Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit ad91424

Browse files
committed
Merge remote-tracking branch 'magento2/2.3-develop' into msi-core-changes-no-history
# Conflicts: # app/code/Magento/Store/Setup/Patch/Schema/InitializeStoresAndWebsites.php # app/etc/di.xml
2 parents 0067244 + 726a5c9 commit ad91424

File tree

1,915 files changed

+81548
-21887
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,915 files changed

+81548
-21887
lines changed

.php_cs.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
*/
66

77
/**
8-
* Pre-commit hook installation:
9-
* vendor/bin/static-review.php hook:install dev/tools/Magento/Tools/StaticReview/pre-commit .git/hooks/pre-commit
8+
* PHP Coding Standards fixer configuration
109
*/
10+
1111
$finder = PhpCsFixer\Finder::create()
1212
->name('*.phtml')
1313
->exclude('dev/tests/functional/generated')

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ addons:
1111
firefox: "46.0"
1212
hosts:
1313
- magento2.travis
14+
services:
15+
- rabbitmq
1416
language: php
1517
php:
1618
- 7.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/magento/magento2.svg?branch=develop)](https://travis-ci.org/magento/magento2)
1+
[![Build Status](https://travis-ci.org/magento/magento2.svg?branch=2.3-develop)](https://travis-ci.org/magento/magento2)
22
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/magento/magento2?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
33
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/magento-2/localized.png)](https://crowdin.com/project/magento-2)
44
<h2>Welcome</h2>

app/code/Magento/AdminNotification/etc/db_schema.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
-->
88
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9-
xsi:noNamespaceSchemaLocation="urn:magento:setup:Model/Declaration/Schema/etc/schema.xsd">
9+
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
1010
<table name="adminnotification_inbox" resource="default" engine="innodb" comment="Adminnotification Inbox">
1111
<column xsi:type="int" name="notification_id" padding="10" unsigned="true" nullable="false" identity="true"
1212
comment="Notification id"/>

app/code/Magento/AdminNotification/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9-
<module name="Magento_AdminNotification" setup_version="2.0.0">
9+
<module name="Magento_AdminNotification" >
1010
<sequence>
1111
<module name="Magento_Store"/>
1212
</sequence>

app/code/Magento/AdvancedPricingImportExport/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9-
<module name="Magento_AdvancedPricingImportExport" setup_version="2.0.0">
9+
<module name="Magento_AdvancedPricingImportExport" >
1010
</module>
1111
</config>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Amqp\Model;
7+
8+
/**
9+
* {@inheritdoc}
10+
*
11+
* @deprecated 100.2.0
12+
*/
13+
class Config extends \Magento\Framework\Amqp\Config
14+
{
15+
16+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Amqp\Model;
7+
8+
use Magento\Framework\MessageQueue\ConfigInterface as QueueConfig;
9+
use Magento\Framework\Communication\ConfigInterface as CommunicationConfigInterface;
10+
use Magento\Framework\MessageQueue\Publisher\ConfigInterface as PublisherConfig;
11+
use Magento\Framework\MessageQueue\Rpc\ResponseQueueNameBuilder;
12+
13+
/**
14+
* {@inheritdoc}
15+
*
16+
* @deprecated 100.2.0
17+
*/
18+
class Exchange extends \Magento\Framework\Amqp\Exchange
19+
{
20+
/**
21+
* Initialize dependencies.
22+
*
23+
* @param Config $amqpConfig
24+
* @param QueueConfig $queueConfig
25+
* @param CommunicationConfigInterface $communicationConfig
26+
* @param int $rpcConnectionTimeout
27+
*
28+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
29+
*/
30+
public function __construct(
31+
Config $amqpConfig,
32+
QueueConfig $queueConfig,
33+
CommunicationConfigInterface $communicationConfig,
34+
$rpcConnectionTimeout = self::RPC_CONNECTION_TIMEOUT
35+
) {
36+
parent::__construct(
37+
$amqpConfig,
38+
$this->getPublisherConfig(),
39+
$this->getResponseQueueNameBuilder(),
40+
$communicationConfig,
41+
$rpcConnectionTimeout
42+
);
43+
}
44+
45+
/**
46+
* Get publisher config.
47+
*
48+
* @return PublisherConfig
49+
*
50+
* @deprecated 100.2.0
51+
*/
52+
private function getPublisherConfig()
53+
{
54+
return \Magento\Framework\App\ObjectManager::getInstance()->get(PublisherConfig::class);
55+
}
56+
57+
/**
58+
* Get response queue name builder.
59+
*
60+
* @return ResponseQueueNameBuilder
61+
*
62+
* @deprecated 100.2.0
63+
*/
64+
private function getResponseQueueNameBuilder()
65+
{
66+
return \Magento\Framework\App\ObjectManager::getInstance()->get(ResponseQueueNameBuilder::class);
67+
}
68+
}

app/code/Magento/Amqp/Model/Queue.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Amqp\Model;
7+
8+
/**
9+
* {@inheritdoc}
10+
*
11+
* @deprecated 100.2.0
12+
*/
13+
class Queue extends \Magento\Framework\Amqp\Queue
14+
{
15+
16+
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Amqp\Model;
7+
8+
use Magento\Framework\Amqp\Topology\ExchangeInstaller;
9+
use Magento\Framework\Amqp\Topology\QueueInstaller;
10+
use Magento\Framework\MessageQueue\ConfigInterface as QueueConfig;
11+
use Magento\Framework\Communication\ConfigInterface as CommunicationConfig;
12+
use Magento\Framework\MessageQueue\Topology\ConfigInterface as TopologyConfig;
13+
use Magento\Framework\Amqp\ConfigPool;
14+
use Magento\Framework\Amqp\ConnectionTypeResolver;
15+
use Magento\Framework\Amqp\TopologyInstaller;
16+
17+
/**
18+
* Class Topology creates topology for Amqp messaging
19+
*
20+
* @deprecated 100.2.0
21+
*/
22+
class Topology extends TopologyInstaller
23+
{
24+
/**
25+
* Type of exchange
26+
*
27+
* @deprecated
28+
*/
29+
const TOPIC_EXCHANGE = 'topic';
30+
31+
/**
32+
* Amqp connection
33+
*/
34+
const AMQP_CONNECTION = 'amqp';
35+
36+
/**
37+
* Durability for exchange and queue
38+
*
39+
* @deprecated
40+
*/
41+
const IS_DURABLE = true;
42+
43+
/**
44+
* Initialize dependencies
45+
*
46+
* @param Config $amqpConfig
47+
* @param QueueConfig $queueConfig
48+
* @param CommunicationConfig $communicationConfig
49+
* @param \Psr\Log\LoggerInterface $logger
50+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
51+
*/
52+
public function __construct(
53+
Config $amqpConfig,
54+
QueueConfig $queueConfig,
55+
CommunicationConfig $communicationConfig,
56+
\Psr\Log\LoggerInterface $logger
57+
) {
58+
parent::__construct(
59+
\Magento\Framework\App\ObjectManager::getInstance()->get(TopologyConfig::class),
60+
\Magento\Framework\App\ObjectManager::getInstance()->get(ExchangeInstaller::class),
61+
\Magento\Framework\App\ObjectManager::getInstance()->get(ConfigPool::class),
62+
\Magento\Framework\App\ObjectManager::getInstance()->get(QueueInstaller::class),
63+
\Magento\Framework\App\ObjectManager::getInstance()->get(ConnectionTypeResolver::class),
64+
$logger
65+
);
66+
}
67+
}

0 commit comments

Comments
 (0)