改名
This commit is contained in:
@@ -15,7 +15,6 @@ use Database\Connection;
|
||||
use Exception;
|
||||
use Http\Context\HttpHeaders;
|
||||
use Http\Context\HttpParams;
|
||||
use Http\Context\Response;
|
||||
use Http\Route\Router;
|
||||
use Server\Server;
|
||||
use Http\Shutdown;
|
||||
@@ -431,8 +430,6 @@ abstract class BaseApplication extends Component
|
||||
|
||||
/**
|
||||
* @param $array
|
||||
* @throws ReflectionException
|
||||
* @throws NotFindClassException
|
||||
*/
|
||||
private function setComponents($array): void
|
||||
{
|
||||
@@ -443,8 +440,6 @@ abstract class BaseApplication extends Component
|
||||
/**
|
||||
* @param $id
|
||||
* @param $definition
|
||||
* @throws ReflectionException
|
||||
* @throws NotFindClassException
|
||||
*/
|
||||
public function set($id, $definition): void
|
||||
{
|
||||
@@ -455,8 +450,6 @@ abstract class BaseApplication extends Component
|
||||
/**
|
||||
* @param $id
|
||||
* @return bool
|
||||
* @throws NotFindClassException
|
||||
* @throws ReflectionException
|
||||
*/
|
||||
public function has($id): bool
|
||||
{
|
||||
@@ -483,7 +476,6 @@ abstract class BaseApplication extends Component
|
||||
'jwt' => ['class' => Jwt::class],
|
||||
'async' => ['class' => Async::class],
|
||||
'kafka-container' => ['class' => KafkaProvider::class],
|
||||
'response' => ['class' => Response::class],
|
||||
'shutdown' => ['class' => Shutdown::class],
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -5,10 +5,10 @@ namespace Kiri\Abstracts;
|
||||
|
||||
|
||||
use Annotation\Annotation as SAnnotation;
|
||||
use Database\Connection;
|
||||
use Database\DatabasesProviders;
|
||||
use Http\Client\Client;
|
||||
use Http\Client\Curl;
|
||||
use Http\Context\Response;
|
||||
use Http\HttpFilter;
|
||||
use Http\Route\Router;
|
||||
use Server\Server;
|
||||
@@ -25,7 +25,6 @@ use Kiri\Jwt\Jwt;
|
||||
* @property Router $router
|
||||
* @property \Redis|Redis $redis
|
||||
* @property Server $server
|
||||
* @property Response $response
|
||||
* @property DatabasesProviders $db
|
||||
* @property Async $async
|
||||
* @property Logger $logger
|
||||
@@ -33,7 +32,7 @@ use Kiri\Jwt\Jwt;
|
||||
* @property SAnnotation $annotation
|
||||
* @property BaseGoto $goto
|
||||
* @property Client $client
|
||||
* @property \Database\Connection $databases
|
||||
* @property Connection $databases
|
||||
* @property Curl $curl
|
||||
* @property Producer $crontab
|
||||
* @property HttpFilter $filter
|
||||
|
||||
@@ -13,7 +13,6 @@ namespace Kiri;
|
||||
use Closure;
|
||||
use Database\DatabasesProviders;
|
||||
use Exception;
|
||||
use Http\Context\Response;
|
||||
use Kiri\Abstracts\BaseApplication;
|
||||
use Kiri\Abstracts\Config;
|
||||
use Kiri\Abstracts\Kernel;
|
||||
@@ -22,7 +21,6 @@ use Kiri\Exception\NotFindClassException;
|
||||
use Kiri\FileListen\FileChangeCustomProcess;
|
||||
use ReflectionException;
|
||||
use Server\Events\OnBeforeCommandExecute;
|
||||
use Server\ResponseInterface;
|
||||
use Server\ServerCommand;
|
||||
use Server\ServerProviders;
|
||||
use stdClass;
|
||||
@@ -57,7 +55,6 @@ class Application extends BaseApplication
|
||||
|
||||
|
||||
/**
|
||||
* @throws NotFindClassException
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
@@ -246,19 +243,6 @@ class Application extends BaseApplication
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $data
|
||||
* @return Response|ResponseInterface
|
||||
* @throws NotFindClassException
|
||||
* @throws ReflectionException
|
||||
* @throws Exception
|
||||
*/
|
||||
private function getBuilder($data): Response|ResponseInterface
|
||||
{
|
||||
return di(Response::class)->getBuilder($data);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $className
|
||||
* @param null $abstracts
|
||||
|
||||
Reference in New Issue
Block a user