|
@@ -76,7 +76,7 @@ class Factory implements FactoryInterface
|
|
public function create($parameters)
|
|
public function create($parameters)
|
|
{
|
|
{
|
|
if (!$parameters instanceof ParametersInterface) {
|
|
if (!$parameters instanceof ParametersInterface) {
|
|
- $parameters = Parameters::create($parameters);
|
|
|
|
|
|
+ $parameters = $this->createParameters($parameters);
|
|
}
|
|
}
|
|
|
|
|
|
$scheme = $parameters->scheme;
|
|
$scheme = $parameters->scheme;
|
|
@@ -114,6 +114,17 @@ class Factory implements FactoryInterface
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Creates a connection parameters instance from the supplied argument.
|
|
|
|
+ *
|
|
|
|
+ * @param mixed $parameters Original connection parameters.
|
|
|
|
+ * @return ParametersInterface
|
|
|
|
+ */
|
|
|
|
+ protected function createParameters($parameters)
|
|
|
|
+ {
|
|
|
|
+ return Parameters::create($parameters);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Prepares a connection instance after its initialization.
|
|
* Prepares a connection instance after its initialization.
|
|
*
|
|
*
|