/**
  * @param $name
  *
  * @return $this
  */
 public function using($name)
 {
     $this->sender->using($name);
     $pvd = $this->recordProvider->getProvider()->findByName($name);
     $provider = $this->sender->getProvider();
     if ($provider instanceof ProviderInterface && $pvd) {
         $provider->applyOptions($pvd->getParameters());
     }
     return $this;
 }
Esempio n. 2
0
 public function accept(RecordProvider $visitor)
 {
     /* @var ProviderInterface $this */
     $visitor->visit($this);
 }