예제 #1
0
 /**
  * Instantiates a new SyneriseTracker instance.
  * @param array $config
  */
 public function __construct($config = array())
 {
     if (isset($config['allowFork']) && $config['allowFork'] == true) {
         $config['handler'] = new ForkCurlHandler([]);
     }
     parent::__construct($config);
     $this->client = Producers\Client::getInstance();
     $this->event = Event::getInstance();
     $this->transaction = Producers\Transaction::getInstance();
     $config = Collection::fromConfig($config, static::getDefaultConfig(), static::$required);
     $this->configure($config);
 }
예제 #2
0
 public function flushQueue()
 {
     $this->event->reset();
     $this->transaction->reset();
     $this->client->reset();
 }