Example #1
0
 /**
  * Initializes the default client to use. Uses the socket consumer by default.
  * @param  string $secret   your project's secret key
  * @param  array  $options  passed straight to the client
  */
 public static function init($secret, $options = array())
 {
     self::assert($secret, "Segment::init() requires secret");
     self::$client = new Segment_Client($secret, $options);
 }