/**
  * Initializes provided context.
  *
  * @param Context $context
  */
 public function initializeContext(Context $context)
 {
     if (!$context instanceof DoctrineDbalAwareContext) {
         return;
     }
     $context->setConnection($this->conn);
 }
 /**
  * Initializes provided context.
  *
  * @param Context $context
  */
 public function initializeContext(Context $context)
 {
     if (!$context instanceof ConnectionAwareContextInterface) {
         return;
     }
     $context->setConnection($this->connection);
 }