ok

Mini Shell

Direktori : /home2/selectio/public_html/bharath/a1tex.in/vendor/facade/ignition/src/Middleware/
Upload File :
Current File : /home2/selectio/public_html/bharath/a1tex.in/vendor/facade/ignition/src/Middleware/AddSolutions.php

<?php

namespace Facade\Ignition\Middleware;

use Facade\FlareClient\Report;
use Facade\IgnitionContracts\SolutionProviderRepository;

class AddSolutions
{
    /** @var \Facade\IgnitionContracts\SolutionProviderRepository */
    protected $solutionProviderRepository;

    public function __construct(SolutionProviderRepository $solutionProviderRepository)
    {
        $this->solutionProviderRepository = $solutionProviderRepository;
    }

    public function handle(Report $report, $next)
    {
        if ($throwable = $report->getThrowable()) {
            $solutions = $this->solutionProviderRepository->getSolutionsForThrowable($throwable);

            foreach ($solutions as $solution) {
                $report->addSolution($solution);
            }
        }

        return $next($report);
    }
}

Zerion Mini Shell 1.0