solutionProviderRepository = $solutionProviderRepository; } public function handle(Report $report, $next) { $throwable = $report->getThrowable(); $solutions = $this->solutionProviderRepository->getSolutionsForThrowable($throwable); foreach ($solutions as $solution) { $report->addSolution($solution); } return $next($report); } }