变更
This commit is contained in:
+12
-2
@@ -12,10 +12,9 @@ namespace Database;
|
||||
|
||||
use Exception;
|
||||
use Kiri\Abstracts\Component;
|
||||
use Kiri\Di\Context;
|
||||
use Kiri\Di\Container;
|
||||
use Kiri\Exception\ConfigException;
|
||||
use PDO;
|
||||
use PDOStatement;
|
||||
|
||||
/**
|
||||
* Class Command
|
||||
@@ -41,6 +40,17 @@ class Command extends Component
|
||||
public array $params = [];
|
||||
|
||||
|
||||
/**
|
||||
* @param array $params
|
||||
* @throws Exception
|
||||
*/
|
||||
public function __construct(array $params = [])
|
||||
{
|
||||
parent::__construct();
|
||||
Container::configure($this, $params);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return int|bool
|
||||
* @throws Exception
|
||||
|
||||
Reference in New Issue
Block a user