Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439 Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
29 lines
931 B
PHP
29 lines
931 B
PHP
<?php
|
|
|
|
namespace Doctrine\DBAL;
|
|
|
|
use Doctrine\DBAL\Platforms\AbstractPlatform;
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
interface VersionAwarePlatformDriver
|
|
{
|
|
/**
|
|
* Factory method for creating the appropriate platform instance for the given version.
|
|
*
|
|
* @param string $version The platform/server version string to evaluate. This should be given in the notation
|
|
* the underlying database vendor uses.
|
|
*
|
|
* @return AbstractPlatform
|
|
*
|
|
* @throws Exception If the given version string could not be evaluated.
|
|
*/
|
|
public function createDatabasePlatformForVersion($version);
|
|
}
|