<?php

declare(strict_types=1);

namespace App\Core;

final class Response
{
    public static function redirect(string $path): void
    {
        Redirect::to($path);
    }

    public static function view(string $template, array $data = []): void
    {
        view($template, $data);
    }

    public static function flash(string $type, string $message): void
    {
        Flash::set($type, $message);
    }
}
