public function __construct($apiKey = null, $options = array())
 {
     if ($apiKey === null) {
         $apiKey = sfConfig::get('app_sf_mailchimp_plugin_apiKey');
     }
     $options = array_merge(sfConfig::get('app_sf_mailchimp_plugin_options', array()), $options);
     parent::__construct($apiKey, $options);
 }
Beispiel #2
0
 /**
  * Constructor
  *
  * @param string $apiKey
  */
 public function __construct($apiKey)
 {
     parent::__construct($apiKey, array('CURLOPT_FOLLOWLOCATION' => true));
     $this->lastRequest = null;
     $this->lastResponse = null;
 }