ok

Mini Shell

Direktori : /home2/selectio/www/myclassicfit.com/vendor/facade/ignition/src/Middleware/
Upload File :
Current File : /home2/selectio/www/myclassicfit.com/vendor/facade/ignition/src/Middleware/AddJobInformation.php

<?php

namespace Facade\Ignition\Middleware;

use Facade\FlareClient\Report;
use Facade\Ignition\JobRecorder\JobRecorder;

class AddJobInformation
{
    /** @var \Facade\Ignition\JobRecorder\JobRecorder */
    protected $jobRecorder;

    public function __construct(JobRecorder $jobRecorder)
    {
        $this->jobRecorder = $jobRecorder;
    }

    public function handle(Report $report, $next)
    {
        if ($this->jobRecorder->getJob()) {
            $report->group('job', $this->jobRecorder->toArray());
        }

        return $next($report);
    }
}

Zerion Mini Shell 1.0