‪TYPO3CMS  9.5
Connection.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
3 
5 
6 /*
7  * This file is part of the TYPO3 CMS project.
8  *
9  * It is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License, either version 2
11  * of the License, or any later version.
12  *
13  * For the full copyright and license information, please read the
14  * LICENSE.txt file that was distributed with this source code.
15  *
16  * The TYPO3 project - inspiring people to share!
17  */
18 
19 use PDO;
20 
25 class ‪Connection extends \Doctrine\DBAL\Driver\PDOSqlsrv\Connection
26 {
30  public function ‪__construct($dsn, $user = null, $password = null, ?array $options = null)
31  {
32  parent::__construct($dsn, $user, $password, $options);
33  $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
34  }
35 }
‪TYPO3\CMS\Core\Database\Driver\PDOSqlsrv\Connection
Definition: Connection.php:26
‪TYPO3\CMS\Core\Database\Driver\PDOSqlsrv\Connection\__construct
‪__construct($dsn, $user=null, $password=null, ?array $options=null)
Definition: Connection.php:30
‪TYPO3\CMS\Core\Database\Driver\PDOSqlsrv
Definition: Connection.php:4