Example #1
0
 /**
  * @param array $cnInfo array{ConnectionInformation} see Helper::openPDO
  * @see Helper::openPDO
  * @param string $appCode
  * @param TagCacheAssistant $assistant
  */
 public function __construct(array $cnInfo, $appCode, TagCacheAssistant $assistant)
 {
     if (!isset(self::$ROOT_PATH)) {
         self::$ROOT_PATH = self::makeInnerPath([]);
     }
     $this->assistant = $assistant;
     $this->qi = new QueryIt(Helper::openPDO($cnInfo));
     $this->initialize($appCode);
     $this->qi->getPDO()->beginTransaction();
 }
Example #2
0
 /** @return \PDO */
 public function createDatabaseConnection()
 {
     return Helper::openPDO($this->cnInfo);
 }