public function __construct() { $this->descriptor = Container::get($this->service); }
/** * @param $key */ public static function setApiKey($key) { $descriptor = new ServiceDescriptor($key); Container::register($descriptor); }
/** * @param $token * @param $key * @param bool $production */ public static function setCredentials($token, $key, $production = false) { $descriptor = new ServiceDescriptor($token, $key, $production); Container::register($descriptor); }