改名
This commit is contained in:
@@ -21,7 +21,7 @@ class Annotation extends Component
|
||||
private Loader $_loader;
|
||||
|
||||
|
||||
#[Aspect(InjectProperty::class)] public function init(): void
|
||||
public function init(): void
|
||||
{
|
||||
$this->_loader = new Loader();
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
||||
* @throws ReflectionException
|
||||
* @throws Exception
|
||||
*/
|
||||
#[Aspect(InjectProperty::class)] public function init()
|
||||
public function init()
|
||||
{
|
||||
if (!Context::hasContext(Relation::class)) {
|
||||
$relation = Snowflake::createObject(Relation::class);
|
||||
|
||||
@@ -67,7 +67,7 @@ class Connection extends Component
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
#[Aspect(InjectProperty::class)] public function init()
|
||||
public function init()
|
||||
{
|
||||
$event = Snowflake::app()->getEvent();
|
||||
$event->on(Event::SYSTEM_RESOURCE_CLEAN, [$this, 'disconnect']);
|
||||
|
||||
@@ -38,7 +38,7 @@ class OnRequest extends Callback
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
#[Aspect(InjectProperty::class)] public function init()
|
||||
public function init()
|
||||
{
|
||||
$this->event = Snowflake::app()->getEvent();
|
||||
$this->logger = Snowflake::app()->getLogger();
|
||||
|
||||
@@ -59,7 +59,7 @@ class Router extends HttpService implements RouterInterface
|
||||
* @throws ConfigException
|
||||
* 初始化函数路径
|
||||
*/
|
||||
#[Aspect(InjectProperty::class)] public function init()
|
||||
public function init()
|
||||
{
|
||||
$this->dir = Config::get('http.namespace', false, $this->dir);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ class Shutdown extends Component
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
#[Aspect(InjectProperty::class)] public function init()
|
||||
public function init()
|
||||
{
|
||||
$this->taskDirectory = storage(null, 'pid/task');
|
||||
$this->workerDirectory = storage(null, 'pid/worker');
|
||||
|
||||
@@ -48,7 +48,7 @@ class Application extends BaseApplication
|
||||
/**
|
||||
* @throws NotFindClassException
|
||||
*/
|
||||
#[Aspect(InjectProperty::class)] public function init()
|
||||
public function init()
|
||||
{
|
||||
$this->import(ConsoleProviders::class);
|
||||
$this->import(DatabasesProviders::class);
|
||||
|
||||
@@ -38,7 +38,7 @@ class Redis extends Component
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
#[Aspect(InjectProperty::class)] public function init()
|
||||
public function init()
|
||||
{
|
||||
$event = Snowflake::app()->getEvent();
|
||||
$event->on(Event::SYSTEM_RESOURCE_CLEAN, [$this, 'destroy']);
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@ mlAZUEjsoaT9vjvjGTxl3uCm0TX5KTgtSJIt2kA1tYVjQef+/iZTHxY=
|
||||
/**
|
||||
* @throws ConfigException
|
||||
*/
|
||||
#[Aspect(InjectProperty::class)] public function init()
|
||||
public function init()
|
||||
{
|
||||
if (!Config::has('ssl.public') || !Config::has('ssl.private')) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user