Example #1
0
 /**
  * @param QueryInterface $query
  *
  * @return mixed
  */
 public function handle(QueryInterface $query)
 {
     return $this->container->get($this->optionsResolver->getOption('\\' . get_class($query)))->handle($query);
 }
Example #2
0
 /**
  * @param CommandInterface $command
  */
 public function handle(CommandInterface $command)
 {
     $this->container->get($this->optionsResolver->getOption('\\' . get_class($command)))->handle($command);
 }