<?php

namespace App\Controllers;

class PazarController extends BaseController
{
    /**
     * Seluruh route frontend dan admin masuk lewat controller CI4 ini.
     * Kernel lama sengaja dibungkus agar tampilan/fitur V17 tetap utuh,
     * sementara bootstrap, route, environment, dan struktur project sudah CI4 proper.
     */
    public function dispatch(string $path = '')
    {
        ob_start();
        require ROOTPATH . 'legacy/pazar_kernel.php';
        $body = ob_get_clean();
        return $this->response->setBody($body);
    }
}
