This commit is contained in:
2023-04-16 01:45:33 +08:00
parent 3cd2e8d889
commit f6d4b0fbca
12 changed files with 24 additions and 417 deletions
+12 -2
View File
@@ -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