Refactor classes into Http structure

This commit is contained in:
Maarten 2024-11-26 14:22:04 +01:00
parent 83bc1a1661
commit 591e0c194d
9 changed files with 25 additions and 25 deletions

View file

@ -1,18 +0,0 @@
<?php
namespace Core\View\Render;
use Core\View\Render;
class JsonRender extends Render
{
/**
* @inheritDoc
* @throws \Exception
*/
public function render(): void
{
header('Content-Type: application/json; charset=utf-8');
echo json_encode($this->data);
}
}