src/Configuration/Option/Replication.php
public function getDefault(OptionsInterface $options)
    {
        return function ($options) {
            $connection = new MasterSlaveReplication();

            if ($options->autodiscovery) {
                $connection->setConnectionFactory($options->connections);
                $connection->setAutoDiscovery(true);
            }

            return $connection;
        };
    }
public function getDefault(OptionsInterface $options)
    {
        return function ($options) {
            $connection = new MasterSlaveReplication();

            if ($options->autodiscovery) {
                $connection->setConnectionFactory($options->connections);
                $connection->setAutoDiscovery(true);
            }

            return $connection;
        };
    }
{@inheritdoc}