/**
  * {@inheritdocs}
  */
 public function initializeContext(Context $context)
 {
     // All contexts are passed here, only DrupalAwareInterface is allowed.
     if (!$context instanceof DrupalAwareInterface) {
         return;
     }
     // Set Drupal driver manager.
     $context->setDrupal($this->drupal);
     // Set event dispatcher.
     $context->setDispatcher($this->dispatcher);
     // Add all parameters to the context.
     $context->setDrupalParameters($this->parameters);
 }
 /**
  * {@inheritdocs}
  */
 public function initializeContext(Context $context)
 {
     // All contexts are passed here, only DrupalAwareInterface is allowed.
     if (!$context instanceof EloquaAwareInterface) {
         return;
     }
     // Set ELoqua client.
     $context->setClient($this->client);
     // Set event dispatcher.
     $context->setDispatcher($this->dispatcher);
     // Add all parameters to the context.
     $context->setEloquaParameters($this->parameters);
 }