改名
This commit is contained in:
@@ -319,9 +319,7 @@ abstract class BaseApplication extends Service
|
||||
|
||||
/**
|
||||
* @return Connection
|
||||
* @throws ComponentException
|
||||
* @throws NotFindClassException
|
||||
* @throws ReflectionException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getMysqlFromPool(): Connection
|
||||
{
|
||||
@@ -331,9 +329,7 @@ abstract class BaseApplication extends Service
|
||||
|
||||
/**
|
||||
* @return SRedis
|
||||
* @throws NotFindClassException
|
||||
* @throws ReflectionException
|
||||
* @throws ComponentException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getRedisFromPool(): SRedis
|
||||
{
|
||||
@@ -453,9 +449,7 @@ abstract class BaseApplication extends Service
|
||||
|
||||
/**
|
||||
* @return \Rpc\Producer
|
||||
* @throws ComponentException
|
||||
* @throws NotFindClassException
|
||||
* @throws ReflectionException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getRpc(): \Rpc\Producer
|
||||
{
|
||||
@@ -465,9 +459,7 @@ abstract class BaseApplication extends Service
|
||||
|
||||
/**
|
||||
* @return Channel
|
||||
* @throws ComponentException
|
||||
* @throws NotFindClassException
|
||||
* @throws ReflectionException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getChannel(): Channel
|
||||
{
|
||||
|
||||
@@ -5,10 +5,8 @@ declare(strict_types=1);
|
||||
namespace Snowflake\Pool;
|
||||
|
||||
|
||||
use ReflectionException;
|
||||
use Exception;
|
||||
use Snowflake\Abstracts\BaseObject;
|
||||
use Snowflake\Exception\ComponentException;
|
||||
use Snowflake\Exception\NotFindClassException;
|
||||
use Snowflake\Snowflake;
|
||||
|
||||
/**
|
||||
@@ -23,9 +21,7 @@ class Pool extends BaseObject
|
||||
|
||||
/**
|
||||
* @return Redis
|
||||
* @throws ComponentException
|
||||
* @throws ReflectionException
|
||||
* @throws NotFindClassException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getRedis(): Redis
|
||||
{
|
||||
@@ -34,9 +30,7 @@ class Pool extends BaseObject
|
||||
|
||||
/**
|
||||
* @return Connection
|
||||
* @throws ComponentException
|
||||
* @throws NotFindClassException
|
||||
* @throws ReflectionException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getDb(): Connection
|
||||
{
|
||||
|
||||
@@ -61,9 +61,7 @@ class Snowflake
|
||||
* @param $alias
|
||||
* @param array $array
|
||||
* @return mixed
|
||||
* @throws ComponentException
|
||||
* @throws NotFindClassException
|
||||
* @throws ReflectionException
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function set($alias, $array = []): mixed
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user