/** * @throws BinLogException */ private function auth() { $data = $this->packAuth->createAuthenticationBinary(ConstCapabilityFlags::getCapabilities(), $this->config->getUser(), $this->config->getPassword(), BinLogServerInfo::getSalt()); $this->writeToSocket($data); $this->getPacket(); }