Вход Регистрация
Файл: vendor/doctrine/dbal/lib/Doctrine/DBAL/Sharding/ShardChoser/MultiTenantShardChoser.php
Строк: 28
<?php

namespace DoctrineDBALShardingShardChoser;

use 
DoctrineDBALShardingPoolingShardConnection;

/**
 * The MultiTenant Shard choser assumes that the distribution value directly
 * maps to the shard id.
 *
 * @deprecated
 */
class MultiTenantShardChoser implements ShardChoser
{
    
/**
     * {@inheritdoc}
     */
    
public function pickShard($distributionValuePoolingShardConnection $conn)
    {
        return 
$distributionValue;
    }
}
Онлайн: 1
Реклама