public function execute($files) { if (empty($this->dir)) { throw new UploadSettingsException(); } $this->dispatcher->pipeThrough(['EscapeWork\\LaravelSteroids\\Upload\\NormalizeJob', 'EscapeWork\\LaravelSteroids\\Upload\\ValidateJob', 'EscapeWork\\LaravelSteroids\\Upload\\MoveJob']); $dispatched = $this->dispatch(new UploadJob($files, $this->dir)); $this->dispatcher->pipeThrough([]); return $dispatched; }
/** * Dispatch the given workflow. * * @author Andrea Marco Sartori * @param string $workflow * @return mixed */ protected function dispatchWorkflow($workflow) { $job = $this->inflector->getJob(); $request = $this->resolveRequest(); $pipes = $this->pipelines->getPipesByPipeline($workflow); $parameters = $this->container->make('router')->current()->parameters(); return $this->dispatcher->pipeThrough($pipes)->dispatchFrom($job, $request, $parameters); }
/** * Remember the user password. * * @author Andrea Marco Sartori * @return Illuminate\Http\RedirectResponse */ public function recover(RecoverRequest $request) { $this->bus->pipeThrough(['Cerbero\\Auth\\Pipes\\Recover\\Notify', 'Cerbero\\Auth\\Pipes\\Recover\\Store'])->dispatchFrom('Cerbero\\Auth\\Commands\\RecoverCommand', $request); return back()->withSuccess(trans('auth::recover.success')); }