This commit is contained in:
2021-03-19 16:32:34 +08:00
parent fc18533f7c
commit 0c98f8858d
5 changed files with 112 additions and 5 deletions
+4 -2
View File
@@ -14,6 +14,7 @@ use Exception;
use HttpServer\Client\Http2;
use HttpServer\Http\Request;
use HttpServer\Http\Response;
use HttpServer\HttpFilter;
use HttpServer\Route\Router;
use HttpServer\Server;
@@ -292,10 +293,10 @@ abstract class BaseApplication extends Service
/**
* @throws ComponentException
* @return SRedis
* @throws NotFindClassException
* @throws ReflectionException
* @return SRedis
* @throws ComponentException
*/
public function getRedisFromPool(): SRedis
{
@@ -443,6 +444,7 @@ abstract class BaseApplication extends Service
'redis' => ['class' => Redis::class],
'jwt' => ['class' => Jwt::class],
'async' => ['class' => Async::class],
'filter' => ['class' => HttpFilter::class],
'object' => ['class' => ObjectPool::class],
'goto' => ['class' => BaseGoto::class],
'http2' => ['class' => Http2::class],