This commit is contained in:
2021-03-29 17:00:53 +08:00
parent 459d48686a
commit e9f82e59cc
9 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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();
}
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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']);
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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');
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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
View File
@@ -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;