/** * @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); }
/** * @param array $parameters * * @return string */ protected function buildDSNString(array &$parameters) { return \str_replace(self::PATH . "=", '', parent::buildDSNString($parameters)); }