interface VersionAwarePlatformDriver (View source)

Contract for a driver that is able to create platform instances by version.

Doctrine uses different platform classes for different vendor versions to support the correct features and SQL syntax of each version. This interface should be implemented by drivers that are capable to do this distinction.

Methods

createDatabasePlatformForVersion(string $version)

Factory method for creating the appropriate platform instance for the given version.

Details

AbstractPlatform createDatabasePlatformForVersion(string $version)

Factory method for creating the appropriate platform instance for the given version.

Parameters

string $version The platform/server version string to evaluate. This should be given in the notation the underlying database vendor uses.

Return Value

AbstractPlatform

Exceptions

DBALException if the given version string could not be evaluated.