Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 227aad2910 | |||
| 5d77face53 |
+2
-2
@@ -24,8 +24,8 @@ use Kiri\Exception\NotFindClassException;
|
|||||||
use Kiri\Kiri;
|
use Kiri\Kiri;
|
||||||
use Kiri\Annotation\Inject;
|
use Kiri\Annotation\Inject;
|
||||||
use ReflectionException;
|
use ReflectionException;
|
||||||
use Server\Events\OnWorkerExit;
|
use Kiri\Server\Events\OnWorkerExit;
|
||||||
use Server\Events\OnWorkerStop;
|
use Kiri\Server\Events\OnWorkerStop;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Connection
|
* Class Connection
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ use Kiri\Abstracts\Providers;
|
|||||||
use Kiri\Application;
|
use Kiri\Application;
|
||||||
use Kiri\Exception\ConfigException;
|
use Kiri\Exception\ConfigException;
|
||||||
use Kiri\Kiri;
|
use Kiri\Kiri;
|
||||||
use Server\Events\OnWorkerStart;
|
use Kiri\Server\Events\OnWorkerStart;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class DatabasesProviders
|
* Class DatabasesProviders
|
||||||
@@ -56,7 +56,7 @@ class DatabasesProviders extends Providers
|
|||||||
foreach ($databases as $key => $database) {
|
foreach ($databases as $key => $database) {
|
||||||
$database = $this->_settings($database);
|
$database = $this->_settings($database);
|
||||||
|
|
||||||
$connection = Kiri::getDi()->create(Connection::class, $database);
|
$connection = Kiri::getDi()->create(Connection::class, [$database]);
|
||||||
$connection->fill();
|
$connection->fill();
|
||||||
|
|
||||||
$app->set($key, $connection);
|
$app->set($key, $connection);
|
||||||
|
|||||||
Reference in New Issue
Block a user