code: public function getDefault(OptionsInterface $options)
      {
          return function ($options) {
              $connection = new MasterSlaveReplication();
  
              if ($options->autodiscovery) {
                  $connection->setConnectionFactory($options->connections);
                  $connection->setAutoDiscovery(true);
              }
  
              return $connection;
          };
      }
docs: {@inheritdoc}