/** * Instantiates a new SyneriseTracker instance. * @param array $config */ public function __construct($config = array(), $logger = null) { if (isset($config['allowFork']) && $config['allowFork'] == true) { $config['handler'] = new ForkCurlHandler(array()); } parent::__construct($config, $logger); $this->client = Producers\Client::getInstance(); $this->event = Producers\Event::getInstance(); $this->transaction = Producers\Transaction::getInstance(); }
/** * 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); }