1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- namespace Doctrine\DBAL\Driver\DrizzlePDOMySql;
- use Doctrine\DBAL\Platforms\DrizzlePlatform;
- use Doctrine\DBAL\Schema\DrizzleSchemaManager;
- /**
- * Drizzle driver using PDO MySql.
- *
- * @deprecated
- */
- class Driver extends \Doctrine\DBAL\Driver\PDOMySql\Driver
- {
- /**
- * {@inheritdoc}
- */
- public function connect(array $params, $username = null, $password = null, array $driverOptions = [])
- {
- return new Connection(
- $this->constructPdoDsn($params),
- $username,
- $password,
- $driverOptions
- );
- }
- /**
- * {@inheritdoc}
- */
- public function createDatabasePlatformForVersion($version)
- {
- return $this->getDatabasePlatform();
- }
- /**
- * {@inheritdoc}
- *
- * @return DrizzlePlatform
- */
- public function getDatabasePlatform()
- {
- return new DrizzlePlatform();
- }
- /**
- * {@inheritdoc}
- *
- * @return DrizzleSchemaManager
- */
- public function getSchemaManager(\Doctrine\DBAL\Connection $conn)
- {
- return new DrizzleSchemaManager($conn);
- }
- /**
- * {@inheritdoc}
- *
- * @deprecated
- */
- public function getName()
- {
- return 'drizzle_pdo_mysql';
- }
- }
|