/** * 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); }
public function flushQueue() { $this->event->reset(); $this->transaction->reset(); $this->client->reset(); }