minor changes

This commit is contained in:
2022-01-07 23:44:57 +03:00
parent 43422e7c77
commit bf11e58793
14 changed files with 624 additions and 45 deletions

15
bstd.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
require __DIR__ . '/vendor/autoload.php';
use Pheanstalk\Connection;
use Pheanstalk\Pheanstalk;
use Pheanstalk\SocketFactory;
//$socket = new SocketFactory('unix://' . getcwd() . '/bstd_data/wpcrm_bstd_service.sock', -1, 10, 3);
//$connection = new Connection($socket);
//$pheanstalk = new Pheanstalk($connection);
$pheanstalk = Pheanstalk::create('127.0.0.1', 11300);
return $pheanstalk;