/**
  * @param ProviderInterface $provider
  */
 public function addProvider(ProviderInterface $provider)
 {
     $this->providers[$provider->getName()] = $provider;
 }
예제 #2
0
파일: Pool.php 프로젝트: echo58/sms
 /**
  * 添加一个短信接口供应商
  *
  * @param ProviderInterface $provider
  * @return $this
  */
 public function registerProvider(ProviderInterface $provider)
 {
     $this->providers[$provider->getName()] = $provider;
     $this->sortProviders();
     return $this;
 }