This commit is contained in:
2021-03-29 16:27:12 +08:00
parent c1d37ce826
commit 4442397aa9
10 changed files with 25 additions and 16 deletions
+3 -1
View File
@@ -4,6 +4,8 @@
namespace HttpServer;
use Annotation\Aspect;
use Database\InjectProperty;
use Exception;
use Snowflake\Abstracts\Component;
use Snowflake\Abstracts\Config;
@@ -30,7 +32,7 @@ class Shutdown extends Component
/**
* @throws Exception
*/
public function init()
#[Aspect(InjectProperty::class)] public function init()
{
$this->taskDirectory = storage(null, 'pid/task');
$this->workerDirectory = storage(null, 'pid/worker');