Skip to content

Commit e03224f

Browse files
authored
Merge pull request #117 from snapshotpl/unused-logger
2 parents 9d6be4a + b5e6a59 commit e03224f

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

Diff for: composer.json

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
],
2727
"require": {
2828
"php": "^7.1 || ^8.0",
29-
"psr/log": "~1.0",
3029
"react/event-loop": "^1.0 || ^0.5 || ^0.4",
3130
"react/promise": "~2.2"
3231
},

Diff for: src/Bunny/AbstractClient.php

+1-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Bunny\Protocol\ProtocolReader;
1515
use Bunny\Protocol\ProtocolWriter;
1616
use InvalidArgumentException;
17-
use Psr\Log\LoggerInterface;
1817
use React\Promise;
1918

2019
use function is_array;
@@ -38,9 +37,6 @@ abstract class AbstractClient
3837
/** @var array */
3938
protected $options;
4039

41-
/** @var LoggerInterface */
42-
protected $log;
43-
4440
/** @var resource|null */
4541
protected $stream;
4642

@@ -87,9 +83,8 @@ abstract class AbstractClient
8783
* Constructor.
8884
*
8985
* @param array $options
90-
* @param LoggerInterface $log
9186
*/
92-
public function __construct(array $options = [], LoggerInterface $log = null)
87+
public function __construct(array $options = [])
9388
{
9489
if (!isset($options["host"])) {
9590
$options["host"] = "127.0.0.1";
@@ -144,7 +139,6 @@ public function __construct(array $options = [], LoggerInterface $log = null)
144139
}
145140

146141
$this->options = $options;
147-
$this->log = $log;
148142

149143
$this->init();
150144
}

Diff for: src/Bunny/Async/Client.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Bunny\Protocol\HeartbeatFrame;
88
use Bunny\Protocol\MethodConnectionStartFrame;
99
use Bunny\Protocol\MethodConnectionTuneFrame;
10-
use Psr\Log\LoggerInterface;
1110
use React\EventLoop\Factory;
1211
use React\EventLoop\LoopInterface;
1312
use React\EventLoop\Timer\Timer;
@@ -64,12 +63,11 @@ class Client extends AbstractClient
6463
*
6564
* @param LoopInterface $eventLoop
6665
* @param array $options see {@link AbstractClient} for available options
67-
* @param LoggerInterface $log if argument is passed, AMQP communication will be recorded in debug level
6866
*/
69-
public function __construct(LoopInterface $eventLoop = null, array $options = [], LoggerInterface $log = null)
67+
public function __construct(LoopInterface $eventLoop = null, array $options = [])
7068
{
7169
$options["async"] = true;
72-
parent::__construct($options, $log);
70+
parent::__construct($options);
7371

7472
if ($eventLoop === null) {
7573
$eventLoop = Factory::create();

0 commit comments

Comments
 (0)