예제 #1
0
 /**
  * @param array $parameters
  *
  * @return string
  */
 protected function buildDSNString(array &$parameters)
 {
     if (\array_key_exists(self::UNIX_SOCKET, $parameters)) {
         return self::UNIX_SOCKET . "=" . $parameters[self::UNIX_SOCKET];
     }
     return parent::buildDSNString($parameters);
 }
예제 #2
0
 /**
  * @param array $parameters
  *
  * @return string
  */
 protected function buildDSNString(array &$parameters)
 {
     return \str_replace(self::PATH . "=", '', parent::buildDSNString($parameters));
 }