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/AddQueries.php

<?php

namespace Facade\Ignition\Middleware;

use Facade\FlareClient\Report;
use Facade\Ignition\QueryRecorder\QueryRecorder;

class AddQueries
{
    /** @var \Facade\Ignition\QueryRecorder\QueryRecorder */
    protected $queryRecorder;

    public function __construct(QueryRecorder $queryRecorder)
    {
        $this->queryRecorder = $queryRecorder;
    }

    public function handle(Report $report, $next)
    {
        $report->group('queries', $this->queryRecorder->getQueries());

        return $next($report);
    }
}

Zerion Mini Shell 1.0