示例#1
0
 public function add(ProviderInterface $provider, $alias = null)
 {
     if (null === $alias) {
         $alias = $provider->getName();
     }
     $this->providers[$alias] = $provider;
     return $this;
 }
示例#2
0
 public function getEmbedLink()
 {
     return $this->provider->getEmbedLinkToVideo($this->url);
 }