Files
huangjingfen/pro_v3.5.1/vendor/topthink/think-swoole/src/Ipc.php
panchengyong 7acbf45ff7 new files
2026-03-07 22:29:07 +08:00

24 lines
444 B
PHP

<?php
namespace think\swoole;
/**
*
* @mixin \think\swoole\ipc\driver\UnixSocket
*/
class Ipc extends \think\Manager
{
protected $namespace = "\\think\\swoole\\ipc\\driver\\";
protected function resolveConfig(string $name)
{
return $this->app->config->get("swoole.ipc.{$name}", []);
}
public function getDefaultDriver()
{
return $this->app->config->get('swoole.ipc.type', 'unix_socket');
}
}