Bump php-amqplib/php-amqplib from 2.12.3 to 3.0.0 in /legacy (#1418)

* Bump php-amqplib/php-amqplib from 2.12.3 to 3.0.0 in /legacy

Bumps [php-amqplib/php-amqplib](https://github.com/php-amqplib/php-amqplib) from 2.12.3 to 3.0.0.
- [Release notes](https://github.com/php-amqplib/php-amqplib/releases)
- [Changelog](https://github.com/php-amqplib/php-amqplib/blob/master/CHANGELOG.md)
- [Commits](https://github.com/php-amqplib/php-amqplib/compare/v2.12.3...v3.0.0)

---
updated-dependencies:
- dependency-name: php-amqplib/php-amqplib
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Replace deprecated AMQPConnection with AMQPStreamConnection

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
This commit is contained in:
dependabot[bot] 2021-10-17 21:55:12 +02:00 committed by GitHub
parent 3dd43d183c
commit ccde6039e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 18 deletions

View File

@ -23,9 +23,9 @@ if ($argc <= 1)
$message = $argv[1];
$connection = new AMQPConnection(HOST, PORT, USER, PASS, VHOST);
if (!isset($connection))
{
$connection = new AMQPStreamConnection(HOST, PORT, USER, PASS, VHOST);
if (!isset($connection)) {
echo "Failed to connect to the RabbitMQ server.";
return;
}

View File

@ -16,7 +16,7 @@ class Application_Model_RabbitMq
{
$CC_CONFIG = Config::getConfig();
$conn = new \PhpAmqpLib\Connection\AMQPConnection(
$conn = new \PhpAmqpLib\Connection\AMQPStreamConnection(
$CC_CONFIG['rabbitmq']['host'],
$CC_CONFIG['rabbitmq']['port'],
$CC_CONFIG['rabbitmq']['user'],
@ -99,7 +99,7 @@ class Application_Model_RabbitMq
) {
$config = Config::getConfig();
$conn = new \PhpAmqpLib\Connection\AMQPConnection(
$conn = new \PhpAmqpLib\Connection\AMQPStreamConnection(
$config['rabbitmq']['host'],
$config['rabbitmq']['port'],
$config['rabbitmq']['user'],

View File

@ -109,7 +109,7 @@ function checkRMQConnection()
$ini = parse_ini_file(BUILD_PATH . 'airtime.example.conf', true);
}
$conn = new \PhpAmqpLib\Connection\AMQPConnection(
$conn = new \PhpAmqpLib\Connection\AMQPStreamConnection(
$ini[RMQ_INI_SECTION]['host'],
$ini[RMQ_INI_SECTION]['port'],
$ini[RMQ_INI_SECTION]['user'],

View File

@ -21,7 +21,7 @@
"james-heinrich/getid3": "^1.9",
"jooola/propel1": "dev-master",
"massivescale/celery-php": "^2.1",
"php-amqplib/php-amqplib": "^2.12",
"php-amqplib/php-amqplib": "^3.0",
"simplepie/simplepie": "^1.5",
"zf1s/zend-acl": "^1.13",
"zf1s/zend-application": "^1.13",

20
legacy/composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "d1b034bac302a6e85ed632927c6c8d88",
"content-hash": "859db0c19832f3e981bccb7870b7a330",
"packages": [
{
"name": "composer/semver",
@ -511,22 +511,22 @@
},
{
"name": "php-amqplib/php-amqplib",
"version": "v2.12.3",
"version": "v3.0.0",
"source": {
"type": "git",
"url": "https://github.com/php-amqplib/php-amqplib.git",
"reference": "f746eb44df6d8f838173729867dd1d20b0265faa"
"reference": "c0a8eade209b7e43d6a405303d8de716dfd02749"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-amqplib/php-amqplib/zipball/f746eb44df6d8f838173729867dd1d20b0265faa",
"reference": "f746eb44df6d8f838173729867dd1d20b0265faa",
"url": "https://api.github.com/repos/php-amqplib/php-amqplib/zipball/c0a8eade209b7e43d6a405303d8de716dfd02749",
"reference": "c0a8eade209b7e43d6a405303d8de716dfd02749",
"shasum": ""
},
"require": {
"ext-mbstring": "*",
"ext-sockets": "*",
"php": ">=5.6.3,<8.0",
"php": "^7.0|~8.0.0",
"phpseclib/phpseclib": "^2.0|^3.0"
},
"conflict": {
@ -538,13 +538,13 @@
"require-dev": {
"ext-curl": "*",
"nategood/httpful": "^0.2.20",
"phpunit/phpunit": "^5.7|^6.5|^7.0",
"phpunit/phpunit": "^6.5|^7.0|^9.5",
"squizlabs/php_codesniffer": "^3.5"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.12-dev"
"dev-master": "3.0-dev"
}
},
"autoload": {
@ -586,9 +586,9 @@
],
"support": {
"issues": "https://github.com/php-amqplib/php-amqplib/issues",
"source": "https://github.com/php-amqplib/php-amqplib/tree/v2.12.3"
"source": "https://github.com/php-amqplib/php-amqplib/tree/v3.0.0"
},
"time": "2021-03-01T12:21:31+00:00"
"time": "2021-03-16T15:00:23+00:00"
},
{
"name": "phpseclib/phpseclib",

View File

@ -61,7 +61,7 @@ class RabbitMQSetup extends Setup
public function checkRMQConnection()
{
$conn = new \PhpAmqpLib\Connection\AMQPConnection(
$conn = new \PhpAmqpLib\Connection\AMQPStreamConnection(
self::$_properties['host'],
self::$_properties['port'],
self::$_properties['user'],