Example #1
0
 protected function __construct()
 {
     $this->config = $this->validateConfig(Config::getAkamaiConfig());
     $this->key = $this->config['AKAMAI_KEY'];
     $this->key_name = $this->config['AKAMAI_KEYNAME'];
     $this->host = $this->config['AKAMAI_HOST'];
     $this->auth = new AkamaiAuth($this->key, $this->key_name);
     // $this->version = $this->config->version;
 }
Example #2
0
 public function __CONSTRUCT($duration)
 {
     $this->config = Config::getAkamaiConfig();
     $this->setOptions($duration);
 }
Example #3
0
 public function testConfigLoader()
 {
     Config::loadFromENV('./tests/');
     $config = ["AKAMAI_HOST" => "testinginline", "AKAMAI_KEY" => "U5Z1mKb18pTPvBs5sgbOGOWlqMiJ8Rm4uKCax6abw2wCiHD8Dk", "AKAMAI_KEYNAME" => "testinginline", "AKAMAI_VIDEO_TOKEN" => "b30Hlb8VG1BGTyC3qKllXrOQgM5QHBlo"];
     $this->assertEquals(Config::getAkamaiConfig(), $config);
 }