/** * {@inheritdoc} */ public function connect() { if (parent::connect() && $this->initCommands) { foreach ($this->initCommands as $command) { $this->executeCommand($command); } } }
/** * {@inheritdoc} */ public function connect() { parent::connect(); $this->connectWithTimeout($this->parameters); if (count($this->initCmds) > 0) { $this->sendInitializationCommands(); } }
/** * {@inheritdoc} */ public function connect() { parent::connect(); if (count($this->initCmds) > 0) { $this->sendInitializationCommands(); } }
/** * {@inheritdoc} */ public function connect() { if (parent::connect() && $this->initCommands) { foreach ($this->initCommands as $command) { $response = $this->executeCommand($command); if ($response instanceof ErrorResponseInterface) { $this->onConnectionError("`{$command->getId()}` failed: {$response}", 0); } } } }
/** * {@inheritdoc} */ public function connect() { if (parent::connect()) { $this->connectWithTimeout($this->parameters); if ($this->initCommands) { foreach ($this->initCommands as $command) { $this->executeCommand($command); } } } }