cubex/workerman

Cubex Framework with Workerman

0.5.0 2024-04-09 15:26 UTC

This package is auto-updated.

Last update: 2024-09-09 17:36:41 UTC


README

在你的public/index.php中,你需要升级到

$cubex = new Cubex(dirname(__DIR__), $loader);
$cubex->handle(new Application());

use Cubex\Workerman\CubexWorker;

$worker = CubexWorker::create(
  dirname(__DIR__),
  $loader,
  function () { return new Application(); },
  'http://0.0.0.0:3000'
)->setCount(4);

这将使workerman在3000端口上运行,有4个进程