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