改名
This commit is contained in:
@@ -21,6 +21,7 @@ use HttpServer\Service\Http;
|
|||||||
use HttpServer\Service\Packet;
|
use HttpServer\Service\Packet;
|
||||||
use HttpServer\Service\Receive;
|
use HttpServer\Service\Receive;
|
||||||
use HttpServer\Service\Websocket;
|
use HttpServer\Service\Websocket;
|
||||||
|
use JetBrains\PhpStorm\Pure;
|
||||||
use Kafka\Producer;
|
use Kafka\Producer;
|
||||||
use Annotation\Annotation as SAnnotation;
|
use Annotation\Annotation as SAnnotation;
|
||||||
use Snowflake\Async;
|
use Snowflake\Async;
|
||||||
@@ -37,6 +38,7 @@ use Snowflake\Snowflake;
|
|||||||
use Snowflake\Event;
|
use Snowflake\Event;
|
||||||
use Snowflake\Pool\Pool as SPool;
|
use Snowflake\Pool\Pool as SPool;
|
||||||
use Database\DatabasesProviders;
|
use Database\DatabasesProviders;
|
||||||
|
use Swoole\Table;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class BaseApplication
|
* Class BaseApplication
|
||||||
@@ -133,7 +135,7 @@ abstract class BaseApplication extends Service
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
protected function looksLikeSetter(string $line): bool
|
#[Pure] protected function looksLikeSetter(string $line): bool
|
||||||
{
|
{
|
||||||
return str_contains($line, '=');
|
return str_contains($line, '=');
|
||||||
}
|
}
|
||||||
@@ -311,6 +313,17 @@ abstract class BaseApplication extends Service
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param $name
|
||||||
|
* @return Table
|
||||||
|
* @throws ComponentException
|
||||||
|
*/
|
||||||
|
public function getTable($name): Table
|
||||||
|
{
|
||||||
|
return $this->get($name);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Config
|
* @return Config
|
||||||
* @throws ComponentException
|
* @throws ComponentException
|
||||||
|
|||||||
Reference in New Issue
Block a user