改名
This commit is contained in:
@@ -36,6 +36,8 @@ class OnWorkerStart extends Callback
|
|||||||
putenv('worker=' . $worker_id);
|
putenv('worker=' . $worker_id);
|
||||||
putenv('state=start');
|
putenv('state=start');
|
||||||
|
|
||||||
|
annotation()->read(APP_PATH . 'app', 'App');
|
||||||
|
|
||||||
if ($worker_id >= $server->setting['worker_num']) {
|
if ($worker_id >= $server->setting['worker_num']) {
|
||||||
$this->onTask($server, $worker_id);
|
$this->onTask($server, $worker_id);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -108,9 +108,6 @@ class Application extends BaseApplication
|
|||||||
public function start(Input $argv): void
|
public function start(Input $argv): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$annotation = $this->getAttributes();
|
|
||||||
$annotation->read(APP_PATH . 'app', 'App');
|
|
||||||
|
|
||||||
fire(Event::SERVER_BEFORE_START);
|
fire(Event::SERVER_BEFORE_START);
|
||||||
|
|
||||||
$this->set('input', $argv);
|
$this->set('input', $argv);
|
||||||
|
|||||||
Reference in New Issue
Block a user