find php executable

This commit is contained in:
yuri
2019-02-01 16:58:47 +02:00
parent 4080c8c877
commit 2186673b2a
4 changed files with 21 additions and 4 deletions
+3 -1
View File
@@ -32,10 +32,12 @@ if (substr(php_sapi_name(), 0, 3) != 'cli') die('Cron can be run only via CLI');
include "bootstrap.php";
$app = new \Espo\Core\Application();
$categoryList = array_keys($app->getContainer()->get('metadata')->get(['app', 'webSocket', 'categories'], []));
$phpExecutablePath = $app->getContainer()->get('config')->get('phpExecutablePath');
$loop = \React\EventLoop\Factory::create();
$pusher = new \Espo\Core\WebSocket\Pusher($categoryList);
$pusher = new \Espo\Core\WebSocket\Pusher($categoryList, $phpExecutablePath);
$context = new \React\ZMQ\Context($loop);
$pull = $context->getSocket(\ZMQ::SOCKET_PULL);