Example #1
0
 /**
  * Allows the pipeline executor to perform operations on the
  * connection before starting to execute the commands stored
  * in the pipeline.
  *
  * @param IConnection Connection instance.
  */
 protected function checkConnection(IConnection $connection)
 {
     if ($connection instanceof IConnectionReplication) {
         $connection->switchTo('master');
     }
 }