Ejemplo n.º 1
0
 public function execute($name, Library\CommandContext $context)
 {
     $mixer = $this->getMixer();
     $table = $mixer instanceof Library\DatabaseTableInterface ? $mixer : $mixer->getTable();
     if ($context->getSubject() instanceof $table) {
         $table->getAdapter()->getCommandChain()->enqueue($this);
     }
     $result = parent::execute($name, $context);
     if ($context->subject instanceof $table) {
         $table->getAdapter()->getCommandChain()->dequeue($this);
     }
     return $result;
 }