Move json renderer
This commit is contained in:
parent
f41db67663
commit
75a22b7b52
2 changed files with 4 additions and 2 deletions
|
@ -1,16 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Core\View;
|
||||
|
||||
class JsonRender extends Render
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function render(): void
|
||||
{
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
echo json_encode($this->data);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue