Illuminate\Bus\Dispatcher::pipeThrough PHP Метод

pipeThrough() публичный метод

Set the pipes through which commands should be piped before dispatching.
public pipeThrough ( array $pipes )
$pipes array
    public function pipeThrough(array $pipes)
    {
        $this->pipes = $pipes;
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * Bootstrap any application services.
  *
  * @param  \Illuminate\Bus\Dispatcher  $dispatcher
  * @return void
  */
 public function boot(Dispatcher $dispatcher)
 {
     $dispatcher->pipeThrough([CommandValidationPipe::class]);
     $dispatcher->mapUsing(function ($command) {
         return Dispatcher::simpleMapping($command, 'App\\Commands', 'App\\Handlers\\Commands');
     });
 }
All Usage Examples Of Illuminate\Bus\Dispatcher::pipeThrough