<?php require realpath(__DIR__ . '/../vendor/autoload.php'); $config = new crodas\Worker\Config(['pdo' => 'sqlite:' . sys_get_temp_dir() . '/worker.db']); $config->setEngine('EPDO'); $config->AddDirectory(__DIR__); $s = new crodas\Worker\Server($config); $s->serve();
<?php require __DIR__ . "/config.php"; $config->addDirectory(__DIR__); /* extra configuration */ $config['foo'] = 'bar'; $server = new crodas\Worker\Server($config); $server->serve();