改名
This commit is contained in:
@@ -15,6 +15,7 @@ use Exception;
|
|||||||
use HttpServer\Route\Router;
|
use HttpServer\Route\Router;
|
||||||
use Kafka\Producer;
|
use Kafka\Producer;
|
||||||
use Snowflake\Abstracts\BaseGoto;
|
use Snowflake\Abstracts\BaseGoto;
|
||||||
|
use Snowflake\Abstracts\TraitApplication;
|
||||||
use Snowflake\Cache\Redis;
|
use Snowflake\Cache\Redis;
|
||||||
use Snowflake\Error\Logger;
|
use Snowflake\Error\Logger;
|
||||||
use Snowflake\Event;
|
use Snowflake\Event;
|
||||||
@@ -27,24 +28,12 @@ use Snowflake\Snowflake;
|
|||||||
/**
|
/**
|
||||||
* Class WebController
|
* Class WebController
|
||||||
* @package Snowflake\Snowflake\Web
|
* @package Snowflake\Snowflake\Web
|
||||||
* @property BaseGoto $goto
|
|
||||||
* @property Event $event
|
|
||||||
* @property Router $router
|
|
||||||
* @property SPool $pool
|
|
||||||
* @property \Redis|Redis $redis
|
|
||||||
* @property Server $server
|
|
||||||
* @property DatabasesProviders $db
|
|
||||||
* @property Connection $connections
|
|
||||||
* @property Logger $logger
|
|
||||||
* @property Jwt $jwt
|
|
||||||
* @property Client $client
|
|
||||||
* @property Producer $kafka
|
|
||||||
* @property Curl $curl
|
|
||||||
* @property Http2 $http2
|
|
||||||
*/
|
*/
|
||||||
class Controller extends Application
|
class Controller extends Application
|
||||||
{
|
{
|
||||||
|
|
||||||
|
use TraitApplication;
|
||||||
|
|
||||||
/** @var null|HttpParams $input */
|
/** @var null|HttpParams $input */
|
||||||
public null|HttpParams $input;
|
public null|HttpParams $input;
|
||||||
|
|
||||||
|
|||||||
@@ -41,24 +41,12 @@ use Database\DatabasesProviders;
|
|||||||
/**
|
/**
|
||||||
* Class BaseApplication
|
* Class BaseApplication
|
||||||
* @package Snowflake\Snowflake\Base
|
* @package Snowflake\Snowflake\Base
|
||||||
* @property Event $event
|
|
||||||
* @property Router $router
|
|
||||||
* @property SPool $pool
|
|
||||||
* @property \Redis|Redis $redis
|
|
||||||
* @property Server $server
|
|
||||||
* @property DatabasesProviders $db
|
|
||||||
* @property Async $async
|
|
||||||
* @property Connection $connections
|
|
||||||
* @property Logger $logger
|
|
||||||
* @property Jwt $jwt
|
|
||||||
* @property SAnnotation $attributes
|
|
||||||
* @property Http2 $http2
|
|
||||||
* @property BaseGoto $goto
|
|
||||||
* @property Producer $kafka
|
|
||||||
*/
|
*/
|
||||||
abstract class BaseApplication extends Service
|
abstract class BaseApplication extends Service
|
||||||
{
|
{
|
||||||
|
|
||||||
|
use TraitApplication;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
namespace Snowflake\Abstracts;
|
||||||
|
|
||||||
|
|
||||||
|
use Annotation\Annotation as SAnnotation;
|
||||||
|
use Database\DatabasesProviders;
|
||||||
|
use HttpServer\Client\Client;
|
||||||
|
use HttpServer\Client\Curl;
|
||||||
|
use HttpServer\Client\Http2;
|
||||||
|
use HttpServer\Http\Request;
|
||||||
|
use HttpServer\Http\Response;
|
||||||
|
use HttpServer\Route\Router;
|
||||||
|
use HttpServer\Server;
|
||||||
|
use Kafka\Producer;
|
||||||
|
use Snowflake\Async;
|
||||||
|
use Snowflake\Cache\Redis;
|
||||||
|
use Snowflake\Error\Logger;
|
||||||
|
use Snowflake\Event;
|
||||||
|
use Snowflake\Jwt\Jwt;
|
||||||
|
use Snowflake\Pool\Connection;
|
||||||
|
use Snowflake\Pool\Pool as SPool;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trait TraitApplication
|
||||||
|
* @package Snowflake\Abstracts
|
||||||
|
* @property Event $event
|
||||||
|
* @property Router $router
|
||||||
|
* @property SPool $pool
|
||||||
|
* @property \Redis|Redis $redis
|
||||||
|
* @property Server $server
|
||||||
|
* @property Response $response
|
||||||
|
* @property Request $request
|
||||||
|
* @property DatabasesProviders $db
|
||||||
|
* @property Async $async
|
||||||
|
* @property Connection $connections
|
||||||
|
* @property Logger $logger
|
||||||
|
* @property Jwt $jwt
|
||||||
|
* @property SAnnotation $attributes
|
||||||
|
* @property Http2 $http2
|
||||||
|
* @property BaseGoto $goto
|
||||||
|
* @property Producer $kafka
|
||||||
|
* @property Client $client
|
||||||
|
* @property Curl $curl
|
||||||
|
*/
|
||||||
|
trait TraitApplication
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user