1234567891011121314151617181920212223242526272829 |
- <?php
- namespace Doctrine\DBAL\Driver\Mysqli;
- use Doctrine\DBAL\DBALException;
- use Doctrine\DBAL\Driver\AbstractMySQLDriver;
- class Driver extends AbstractMySQLDriver
- {
- /**
- * {@inheritdoc}
- */
- public function connect(array $params, $username = null, $password = null, array $driverOptions = [])
- {
- try {
- return new MysqliConnection($params, $username, $password, $driverOptions);
- } catch (MysqliException $e) {
- throw DBALException::driverException($this, $e);
- }
- }
- /**
- * {@inheritdoc}
- */
- public function getName()
- {
- return 'mysqli';
- }
- }
|