From b19fb8c10b21d62e931b5ef85a90b189b4b93506 Mon Sep 17 00:00:00 2001 From: "Bruno O. Notario" Date: Wed, 27 Mar 2024 21:49:41 -0300 Subject: [PATCH] ORDS clean --- .../Databases/Connectors/Oracle/ORDS/Connector.php | 3 --- .../Databases/Connectors/Oracle/ORDS/Model/Query.php | 10 ++++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/system/database/Databases/Connectors/Oracle/ORDS/Connector.php b/system/database/Databases/Connectors/Oracle/ORDS/Connector.php index 17fee65..a6f3f79 100644 --- a/system/database/Databases/Connectors/Oracle/ORDS/Connector.php +++ b/system/database/Databases/Connectors/Oracle/ORDS/Connector.php @@ -44,9 +44,6 @@ class Connector { $this->pass = $pass; - /** @var \Phacil\Framework\Databases\Connectors\Oracle\ORDS\Api\Query */ - //$this->queryExecutor = \Phacil\Framework\Registry::getInstance()->create(\Phacil\Framework\Databases\Connectors\Oracle\ORDS\Api\Query::class); - return $this; } diff --git a/system/database/Databases/Connectors/Oracle/ORDS/Model/Query.php b/system/database/Databases/Connectors/Oracle/ORDS/Model/Query.php index 95429b2..d60b9e3 100644 --- a/system/database/Databases/Connectors/Oracle/ORDS/Model/Query.php +++ b/system/database/Databases/Connectors/Oracle/ORDS/Model/Query.php @@ -58,15 +58,17 @@ class Query implements QueryApi { private $handleFactory; /** - * @param \Phacil\Framework\Databases\Connectors\Oracle\ORDS\Connector $conector - * @param \Phacil\Framework\Databases\Connectors\Oracle\ORDS\Api\HandleInterface $handle + * + * @param \Phacil\Framework\Factory $Factory + * @param \Phacil\Framework\Databases\Connectors\Oracle\ORDS\Helper\Data $helper * @return $this */ public function __construct( - \Phacil\Framework\Databases\Connectors\Oracle\ORDS\Api\HandleInterfaceFactory $handle, + \Phacil\Framework\Factory $Factory, DataHelper $helper ) { - $this->handleFactory = $handle; + $this->handleFactory = $Factory; + $this->handleFactory->setClass(HandleInterface::class); $this->helper = $helper; return $this;