setDefaultParameters() public method

The set of parameters passed to create a new connection have precedence over the default values set for the connection factory.
public setDefaultParameters ( array $parameters )
$parameters array Set of connection parameters.
Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function getDefault(OptionsInterface $options)
 {
     $factory = new Factory();
     if ($options->defined('parameters')) {
         $factory->setDefaultParameters($options->parameters);
     }
     return $factory;
 }