view = $view; $this->data = $data; } public function render(): void { if (!empty($_ENV['DEV'])) { $generator = new Linker($this->view); $generator->generate(); } extract($this->data); require ROOT . '/cache/views/' . $this->view . '.php'; // @phpstan-ignore-next-line - SCRIPT_STARTED is defined in main.php echo ''; } public function getContentType(): string { return 'text/html'; } }