Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function registerGuesserPass(GuesserPassInterface $guesser)
 {
     if ($this->hasPriority($guesser->getName())) {
         throw new \RuntimeException(sprintf('The guesser pass "%s" already registered.', $guesser->getName()));
     }
     parent::registerGuesserPass($guesser);
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function registerGuesserPass(GuesserPassInterface $guesser)
 {
     $this->guessers[] = $guesser;
     $this->priorities[$guesser->getName()] = $guesser->process($this->getIterator());
 }