Copied!

DatabasePlatformResolver

DatabasePlatformResolver.php : 19
Final

Resolves a Doctrine database platform to one of the {@see DatabasePlatformName} identifiers, or null if it is not one of the recognized platforms.

Replaces the DBAL 3.10-deprecated and DBAL 4-removed AbstractPlatform::getName().

Methods

publicresolveName()

DatabasePlatformResolver.php : 59
public static resolveName(AbstractPlatform $platform) : string|null

Parameters

Name Type Default value Description
$platform AbstractPlatform - -

Return values

string|null

one of the DatabasePlatformName constants, or null if unrecognized