<?php
declare(strict_types=1);

namespace App\Modules\Settings\Controllers;

use App\Core\Controller;
use App\Core\Request;
use App\Core\Response;

class SmokeTestController extends Controller
{
    public function run(Request $request): Response
    {
        $this->authorize('settings.edit');

        ob_start();
        require __DIR__ . '/../../../../tools/smoke_test.php';
        $html = ob_get_clean();

        return (new Response())->html($html);
    }
}
