Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Doctrine\DBAL;
4
 
5
use Doctrine\DBAL\Platforms\AbstractPlatform;
6
 
7
/**
8
 * Contract for a driver that is able to create platform instances by version.
9
 *
10
 * Doctrine uses different platform classes for different vendor versions to
11
 * support the correct features and SQL syntax of each version.
12
 * This interface should be implemented by drivers that are capable to do this
13
 * distinction.
14
 *
15
 * @deprecated All drivers will have to be aware of the server version in the next major release.
16
 */
17
interface VersionAwarePlatformDriver extends Driver
18
{
19
    /**
20
     * Factory method for creating the appropriate platform instance for the given version.
21
     *
22
     * @param string $version The platform/server version string to evaluate. This should be given in the notation
23
     *                        the underlying database vendor uses.
24
     *
25
     * @return AbstractPlatform
26
     *
27
     * @throws Exception If the given version string could not be evaluated.
28
     */
29
    public function createDatabasePlatformForVersion($version);
30
}