connect() public method

public connect ( )
 /**
  * {@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();
     }
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function connect()
 {
     parent::connect();
     if (count($this->initCmds) > 0) {
         $this->sendInitializationCommands();
     }
 }
Exemplo n.º 4
0
 /**
  * {@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);
             }
         }
     }
 }
Exemplo n.º 5
0
 /**
  * {@inheritdoc}
  */
 public function connect()
 {
     if (parent::connect()) {
         $this->connectWithTimeout($this->parameters);
         if ($this->initCommands) {
             foreach ($this->initCommands as $command) {
                 $this->executeCommand($command);
             }
         }
     }
 }