改名
This commit is contained in:
+1
-1
@@ -338,7 +338,7 @@ class ' . $managerName . ' extends ActiveRecord
|
|||||||
if (empty($data)) return '';
|
if (empty($data)) return '';
|
||||||
$string = [];
|
$string = [];
|
||||||
foreach ($data as $key => $_val) {
|
foreach ($data as $key => $_val) {
|
||||||
if (strpos($key, ',') !== false) {
|
if (is_string($key) && strpos($key, ',') !== false) {
|
||||||
$key = '[' . $key . ']';
|
$key = '[' . $key . ']';
|
||||||
}
|
}
|
||||||
if (count($_val) == 1) {
|
if (count($_val) == 1) {
|
||||||
|
|||||||
@@ -4,18 +4,47 @@ declare(strict_types=1);
|
|||||||
namespace HttpServer;
|
namespace HttpServer;
|
||||||
|
|
||||||
|
|
||||||
|
use Database\DatabasesProviders;
|
||||||
|
use HttpServer\Client\Client;
|
||||||
|
use HttpServer\Client\Curl;
|
||||||
|
use HttpServer\Client\Http2;
|
||||||
use HttpServer\Http\HttpHeaders;
|
use HttpServer\Http\HttpHeaders;
|
||||||
use HttpServer\Http\HttpParams;
|
use HttpServer\Http\HttpParams;
|
||||||
use HttpServer\Http\Request;
|
use HttpServer\Http\Request;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use HttpServer\Route\Router;
|
||||||
|
use Kafka\Producer;
|
||||||
use Snowflake\Abstracts\BaseGoto;
|
use Snowflake\Abstracts\BaseGoto;
|
||||||
|
use Snowflake\Annotation\Annotation;
|
||||||
|
use Snowflake\Cache\Memcached;
|
||||||
|
use Snowflake\Cache\Redis;
|
||||||
|
use Snowflake\Error\Logger;
|
||||||
|
use Snowflake\Event;
|
||||||
use Snowflake\Exception\ComponentException;
|
use Snowflake\Exception\ComponentException;
|
||||||
|
use Snowflake\Jwt\Jwt;
|
||||||
|
use Snowflake\Pool\Connection;
|
||||||
|
use Snowflake\Pool\Pool as SPool;
|
||||||
use Snowflake\Snowflake;
|
use Snowflake\Snowflake;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class WebController
|
* Class WebController
|
||||||
* @package Snowflake\Snowflake\Web
|
* @package Snowflake\Snowflake\Web
|
||||||
* @property BaseGoto $goto
|
* @property BaseGoto $goto
|
||||||
|
* @property Annotation $annotation
|
||||||
|
* @property Event $event
|
||||||
|
* @property Router $router
|
||||||
|
* @property SPool $pool
|
||||||
|
* @property \Redis|Redis $redis
|
||||||
|
* @property Server $server
|
||||||
|
* @property DatabasesProviders $db
|
||||||
|
* @property Connection $connections
|
||||||
|
* @property Memcached $memcached
|
||||||
|
* @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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ use Database\DatabasesProviders;
|
|||||||
/**
|
/**
|
||||||
* Class BaseApplication
|
* Class BaseApplication
|
||||||
* @package Snowflake\Snowflake\Base
|
* @package Snowflake\Snowflake\Base
|
||||||
* @property $json
|
|
||||||
* @property Annotation $annotation
|
* @property Annotation $annotation
|
||||||
* @property Event $event
|
* @property Event $event
|
||||||
* @property Router $router
|
* @property Router $router
|
||||||
|
|||||||
Reference in New Issue
Block a user