We now use \Laminas as \Zend is abandoned

This commit is contained in:
Deon George 2022-06-01 10:20:38 +10:00
parent a7f043b23e
commit ec8173a339
2 changed files with 6 additions and 4 deletions

View File

@ -10,7 +10,7 @@
}
],
"require": {
"leenooks/phpws": "^2.1.1"
"leenooks/phpws": "^2.1.2"
},
"require-dev": {
},

View File

@ -9,6 +9,8 @@ use GuzzleHttp\ClientInterface;
use Illuminate\Http\Client\ConnectionException;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Log;
use Laminas\Log\Logger;
use Laminas\Log\Writer\Stream;
use React\EventLoop\LoopInterface;
use React\Promise\Deferred;
use React\Promise;
@ -25,7 +27,7 @@ class SocketMode extends API
private WebSocket $websocket;
/**
* @var \Zend\Log\Logger Logger for this client
* @var Laminas\Log\Logger Logger for this client
*/
protected $logger = null;
private array $pendingMessages;
@ -33,8 +35,8 @@ class SocketMode extends API
public function __construct(LoopInterface $loop, ClientInterface $httpClient = null) {
parent::__construct($loop, $httpClient);
$this->logger = new \Zend\Log\Logger();
$this->logger->addWriter(new \Zend\Log\Writer\Stream('php://stderr'));
$this->logger = new Logger;
$this->logger->addWriter(new Stream('php://stderr'));
}
/**