Copied!

DbPlatformFactoryInterface

DbPlatformFactoryInterface.php : 13

Methods

publiccreateDatabasePlatformFromDriverName()

DbPlatformFactoryInterface.php : 27

Create instance of Doctrine AbstractPlatform for the given driver name.

public createDatabasePlatformFromDriverName(string $driverName) : AbstractPlatform|null

Factory can return null, which means that the Driver should decide.

Parameters

Name Type Default value Description
$driverName string -

(e.g. 'pdo_mysql', 'pdo_pgsql', 'pdo_sqlite').

Return values

AbstractPlatform|null

if null - let the Driver decide