コード例 #1
0
ファイル: QueryBus.php プロジェクト: iron-web/php-git-hooks
 /**
  * @param QueryInterface $query
  *
  * @return mixed
  */
 public function handle(QueryInterface $query)
 {
     return $this->container->get($this->optionsResolver->getOption('\\' . get_class($query)))->handle($query);
 }
コード例 #2
0
ファイル: CommandBus.php プロジェクト: iron-web/php-git-hooks
 /**
  * @param CommandInterface $command
  */
 public function handle(CommandInterface $command)
 {
     $this->container->get($this->optionsResolver->getOption('\\' . get_class($command)))->handle($command);
 }