Rank 1: Thread
<?phprequire_once __DIR__ . '/vendor/autoload.php';
use Utopia\Database\Database;use Utopia\Cache\Cache;use Utopia\Cache\Adapter\Memory;use Utopia\Database\Adapter\Mongo;use Utopia\Mongo\Client; // from utopia-php/mongouse Swoole\Coroutine\Client as cli;$dbHost = 'mongo';$dbPort = 27017; $dbUser = 'root';$dbPass = 'password';$dbName = 'dbName';
$mongoClient = new Client($dbName, $dbHost, $dbPort, $dbUser, $dbPass);
$cache = new Cache(new Memory()); // or use any cache adapter you wish
$database = new Database(new Mongo($client), $cache);?>While running this code I am getting error
PHP Fatal error: Uncaught Error: Class "Swoole\Coroutine\Client" not found in /home/arnab/Desktop/php-utopia-database/vendor/utopia-php/mongo/src/Client.php:83
Stack trace:
#0 /home/arnab/Desktop/php-utopia-database/test.php(16): Utopia\Mongo\Client->__construct()
#1 {main}
thrown in /home/arnab/Desktop/php-utopia-database/vendor/utopia-php/mongo/src/Client.php on line 83
swoole is present in the vendor still I am getting this error