改名
This commit is contained in:
@@ -35,19 +35,6 @@ class DatabasesProviders extends Providers
|
||||
|
||||
$event = Snowflake::app()->getEvent();
|
||||
$event->on(Event::SERVER_WORKER_START, [$this, 'createPool']);
|
||||
|
||||
|
||||
$event->on(Event::SERVER_WORKER_START, [$this, 'scanModel']);
|
||||
$event->on(Event::SERVER_TASK_START, [$this, 'scanModel']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @throws ComponentException
|
||||
*/
|
||||
public function scanModel()
|
||||
{
|
||||
annotation()->instanceDirectoryFiles(MODEL_PATH);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user