This commit is contained in:
2021-03-31 18:37:53 +08:00
parent 627faaf0c9
commit 3f6a19aea7
10 changed files with 17 additions and 75 deletions
+4 -12
View File
@@ -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
{
+3 -9
View File
@@ -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
{
+1 -3
View File
@@ -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
{