Esempio n. 1
0
 /**
  * @param QueryInterface $query
  * @return void
  */
 public function execute(QueryInterface $query)
 {
     $handler = $this->mapper->getQueryHandler($query);
     $handler->handle($query);
 }
Esempio n. 2
0
 /**
  * @param CommandInterface $command
  * @return void
  */
 public function execute(CommandInterface $command)
 {
     $handler = $this->mapper->getCommandHandler($command);
     $handler->handle($command);
 }