public static function load() { //get our crypt instance $crypt = Crypt::_get(Config::get('vidcache', 'crypt_key'), Config::get('vidcache', 'crypt_iv')); //load up xport and the environment $obj = static::_get('localhost', Config::get('vidcache', 'server_port'), Config::get('vidcache', 'server_scheme'), Log::DEBUG); $obj->setEncoding(Xport::ENC_SERIALIZE); $obj->stream->setCrypt($crypt); $obj->block_stream->setCrypt($crypt); $obj->vc = SDK::load(); $obj->vc->connect(Config::get('vidcache', 'api_key')); return $obj; }
protected function setUp() { $this->vc = Vidcache::load(); $this->vc->connect(Config::get('vidcache', 'api_key')); }