Exemplo n.º 1
0
 /**
  * Removes a bootstrapper from the queue
  *
  * @param   BootstrapperInterface   $bootstrapper
  * @return  boolean    TRUE on success FALSE on failure
  * @throws \InvalidArgumentException if the object doesn't implement ObjectBootstrapperInterface
  */
 public function dequeue(ObjectHandlable $bootstrapper)
 {
     if (!$bootstrapper instanceof BootstrapperInterface) {
         throw new \InvalidArgumentException('Filter needs to implement BootstrapperInterface');
     }
     return parent::dequeue($bootstrapper);
 }
Exemplo n.º 2
0
 /**
  * Remove a command handlder from the chain
  *
  * @param  CommandHandlerInterface  $handler  The command handler
  * @return  CommandChain
  */
 public function removeHandler(CommandHandlerInterface $handler)
 {
     $this->__queue->dequeue($handler);
     return $this;
 }
Exemplo n.º 3
0
 /**
  * Removes a command from the queue
  *
  * @param   CommandInterface $command
  * @return  boolean    TRUE on success FALSE on failure
  * @throws  \InvalidArgumentException if the object implement CommandInterface
  */
 public function dequeue(ObjectHandlable $command)
 {
     if (!$command instanceof CommandInterface) {
         throw new \InvalidArgumentException('Command needs to implement CommandInterface');
     }
     return parent::dequeue($command);
 }
Exemplo n.º 4
0
 /**
  * Removes a filter from the queue
  *
  * @param   TemplateFilterInterface   $filter
  * @return  boolean    TRUE on success FALSE on failure
  * @throws \InvalidArgumentException if the object doesn't implement TemplateFilterInterface
  */
 public function dequeue(ObjectHandlable $filter)
 {
     if (!$filter instanceof TemplateFilterInterface) {
         throw new \InvalidArgumentException('Filter needs to implement TemplateFilterInterface');
     }
     return parent::dequeue($filter);
 }