Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Commit b1a7025

Browse files
committed
Remove unused Celery::__construct() argument $persistent_messages
1 parent 749b9ce commit b1a7025

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
videlalvaro/php-amqplib is abandoned.
99
- Fix crash with the ampqlib backend when Celery has not yet created the
1010
results exchange.
11+
- The `Celery` constructor no longer accepts the argument
12+
`persistent_messages`. It was previously unused.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ options:
9090
'CN_match' => 'CERT_COMMON_NAME'
9191
];
9292

93-
$c = new \Celery\Celery($host, $user, $password, $vhost, 'celery', 'celery', 5671, false, false, 0, $ssl_options);
93+
$c = new \Celery\Celery($host, $user, $password, $vhost, 'celery', 'celery', 5671, false, 0, $ssl_options);
9494

9595
## CONNECTING TO REDIS
9696

src/Celery.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,10 @@ class Celery extends CeleryAbstract
6161
* @param string binding AMQP binding a.k.a. routing key. See CELERY_DEFAULT_ROUTING_KEY. (set to 'celery' when in doubt)
6262
* @param int port
6363
* @param string connector Which connector library to use. One of: 'pecl', 'php-amqplib', 'php-amqplib-ssl', 'redis'
64-
* @param bool persistent_messages False = transient queue, True = persistent queue. Check "Using Transient Queues" in Celery docs (set to false when in doubt)
6564
* @param int result_expire Expire time for result queue, milliseconds (for AMQP exchanges only)
6665
* @param array ssl_options Used only for 'php-amqplib-ssl' connections, an associative array with values as defined here: http://php.net/manual/en/context.ssl.php
6766
*/
68-
69-
public function __construct($host, $login, $password, $vhost, $exchange='celery', $binding='celery', $port=5672, $connector=false, $persistent_messages=false, $result_expire=0, $ssl_options=[])
67+
public function __construct($host, $login, $password, $vhost, $exchange='celery', $binding='celery', $port=5672, $connector=false, $result_expire=0, $ssl_options=[])
7068
{
7169
$broker_connection = [
7270
'host' => $host,

0 commit comments

Comments
 (0)