modify plugin name

This commit is contained in:
2022-02-18 15:16:40 +08:00
parent 389ad887e6
commit 0bd7139232
2 changed files with 10 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
<?php
namespace Database;
class CreateConnectionPool
{
}
+2 -2
View File
@@ -31,7 +31,7 @@ class DatabasesProviders extends Providers
*/
public function onImport(Application $application)
{
$this->getEventProvider()->on(OnServerBeforeStart::class, [$this, 'createPool']);
$this->getEventProvider()->on(CreateConnectionPool::class, [$this, 'createPool']);
}
@@ -50,7 +50,7 @@ class DatabasesProviders extends Providers
* @throws ConfigException
* @throws Exception
*/
public function createPool(OnBeforeCommandExecute $onWorkerStart)
public function createPool(OnServerBeforeStart $onWorkerStart)
{
$databases = Config::get('databases.connections', []);
if (empty($databases)) {