コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function dispatch($command, Closure $afterResolving = null)
 {
     if ($this->queueResolver && $this->commandShouldBeQueued($command)) {
         return $this->dispatchToQueue($command);
     }
     return parent::dispatch($command, $afterResolving);
 }
コード例 #2
0
 public static function registerBusDispatcher(ContainerInterface $container)
 {
     $bus = new Dispatcher($container);
     $bus->setContainer($container);
     return $bus;
 }