Exemplo n.º 1
0
 /**
  * @param SpecificationIterator[] $iterators
  * @return SpecificationIterator[]
  */
 private function order(array $iterators)
 {
     if (!$this->ordered || $this->unordered != $iterators) {
         $this->unordered = $iterators;
         $this->ordered = $this->orderer->order($iterators);
     }
     return $this->ordered;
 }
Exemplo n.º 2
0
 /**
  * Register a new available controller
  *
  * @param Orderer $orderer
  */
 public function registerOrderer(Orderer $orderer)
 {
     $this->orderers[$orderer->getName()] = $orderer;
 }