| 1 | <?php |
||
| 18 | final class GatewayFactory |
||
| 19 | { |
||
| 20 | /** @var \eZ\Publish\Core\Persistence\Legacy\SharedGateway\Gateway */ |
||
| 21 | private $fallbackGateway; |
||
| 22 | |||
| 23 | /** @var \iterable|\eZ\Publish\Core\Persistence\Legacy\SharedGateway\Gateway[] */ |
||
| 24 | private $gateways; |
||
| 25 | |||
| 26 | public function __construct(Gateway $fallbackGateway, iterable $gateways) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @throws \Doctrine\DBAL\DBALException |
||
| 34 | */ |
||
| 35 | public function buildSharedGateway(Connection $connection): Gateway |
||
| 39 | |||
| 40 | private function getGatewayForDatabasePlatform(string $currentDatabasePlatformName): Gateway |
||
| 50 | } |
||
| 51 |