改名
This commit is contained in:
@@ -38,6 +38,7 @@ use Snowflake\Event;
|
||||
use Snowflake\Exception\InitException;
|
||||
use Snowflake\Exception\NotFindClassException;
|
||||
use Snowflake\Jwt\Jwt;
|
||||
use Snowflake\Pool\ClientsPool;
|
||||
use Snowflake\Pool\Connection;
|
||||
use Snowflake\Pool\Pool as SPool;
|
||||
use Snowflake\Pool\Redis as SRedis;
|
||||
@@ -434,6 +435,16 @@ abstract class BaseApplication extends Service
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return ClientsPool
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getClientsPool(): ClientsPool
|
||||
{
|
||||
return $this->get('clientsPool');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
@@ -444,6 +455,7 @@ abstract class BaseApplication extends Service
|
||||
'connections' => ['class' => Connection::class],
|
||||
'redis_connections' => ['class' => SRedis::class],
|
||||
'pool' => ['class' => SPool::class],
|
||||
'clientsPool' => ['class' => ClientsPool::class],
|
||||
'config' => ['class' => Config::class],
|
||||
'logger' => ['class' => Logger::class],
|
||||
'annotation' => ['class' => SAnnotation::class],
|
||||
|
||||
@@ -23,6 +23,7 @@ use Snowflake\Channel;
|
||||
use Snowflake\Error\Logger;
|
||||
use Snowflake\Event;
|
||||
use Snowflake\Jwt\Jwt;
|
||||
use Snowflake\Pool\ClientsPool;
|
||||
use Snowflake\Pool\Connection;
|
||||
use Snowflake\Pool\Pool as SPool;
|
||||
use Rpc\Producer as RPCProducer;
|
||||
@@ -54,6 +55,7 @@ use Rpc\Producer as RPCProducer;
|
||||
* @property Channel $channel
|
||||
* @property Shutdown $shutdown
|
||||
* @property Emit $emit
|
||||
* @property ClientsPool $clientsPool
|
||||
*/
|
||||
trait TraitApplication
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user