<?php

namespace App\Http\Controllers;

use App\Support\LegacyPhp;
use Illuminate\Http\Response;

class LegacyFunctionController extends Controller
{
    public function run(string $script): Response
    {
        $script = str_replace('\\', '/', $script);

        return LegacyPhp::render('resources/legacy/web/function/'.$script);
    }
}
