We now use \Laminas as \Zend is abandoned
This commit is contained in:
parent
a7f043b23e
commit
ec8173a339
@ -10,7 +10,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"leenooks/phpws": "^2.1.1"
|
"leenooks/phpws": "^2.1.2"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
},
|
},
|
||||||
|
@ -9,6 +9,8 @@ use GuzzleHttp\ClientInterface;
|
|||||||
use Illuminate\Http\Client\ConnectionException;
|
use Illuminate\Http\Client\ConnectionException;
|
||||||
use Illuminate\Support\Arr;
|
use Illuminate\Support\Arr;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
|
use Laminas\Log\Logger;
|
||||||
|
use Laminas\Log\Writer\Stream;
|
||||||
use React\EventLoop\LoopInterface;
|
use React\EventLoop\LoopInterface;
|
||||||
use React\Promise\Deferred;
|
use React\Promise\Deferred;
|
||||||
use React\Promise;
|
use React\Promise;
|
||||||
@ -25,7 +27,7 @@ class SocketMode extends API
|
|||||||
private WebSocket $websocket;
|
private WebSocket $websocket;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \Zend\Log\Logger Logger for this client
|
* @var Laminas\Log\Logger Logger for this client
|
||||||
*/
|
*/
|
||||||
protected $logger = null;
|
protected $logger = null;
|
||||||
private array $pendingMessages;
|
private array $pendingMessages;
|
||||||
@ -33,8 +35,8 @@ class SocketMode extends API
|
|||||||
public function __construct(LoopInterface $loop, ClientInterface $httpClient = null) {
|
public function __construct(LoopInterface $loop, ClientInterface $httpClient = null) {
|
||||||
parent::__construct($loop, $httpClient);
|
parent::__construct($loop, $httpClient);
|
||||||
|
|
||||||
$this->logger = new \Zend\Log\Logger();
|
$this->logger = new Logger;
|
||||||
$this->logger->addWriter(new \Zend\Log\Writer\Stream('php://stderr'));
|
$this->logger->addWriter(new Stream('php://stderr'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user