ok
Direktori : /home2/selectio/www/3-idiots/vendor/facade/ignition/src/Middleware/ |
Current File : /home2/selectio/www/3-idiots/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); } }