<?php

declare(strict_types=1);

namespace App\Core;

abstract class Controller
{
    protected function view(
        string $view,
        array $data = []
    ): void {
        View::render($view, $data);
    }

    protected function redirect(
        string $path,
        int $status = 302
    ): never {
        redirect($path, $status);
    }
}