예제 #1
0
파일: Factory.php 프로젝트: killtw/embed
 /**
  * Create a new Embed instance.
  *
  * @param  array  $url
  * @param  array  $options  Extra options like iframe attributes or params.
  * @return Cohenisve\Embed\Embed
  */
 public function make($url = null, $options = null)
 {
     $embed = new Embed($url, $options);
     $embed->setProviders($this->providers);
     $embed->setSSL($this->ssl);
     return $embed;
 }
예제 #2
0
파일: EmbedTest.php 프로젝트: killtw/embed
 public function testEmbedProviderSetting()
 {
     $embed = new Embed();
     $providers = (require 'src/config/config.php');
     $embed->setProviders($providers['providers']);
     $this->assertEquals($providers['providers'], $embed->getProviders());
 }