VENOM-10: WIP

This commit is contained in:
Maurice Grönwoldt 2020-11-18 17:50:01 +01:00
commit 5c44d50989
33 changed files with 890 additions and 601 deletions

View file

@ -0,0 +1,25 @@
<?php
namespace Venom\Helper;
class AdminHelper
{
public static function getResponse($content, bool $shouldReload = false, string $component = '', $extra = false)
{
$response = [
'content' => $content,
'component' => $component
];
if ($shouldReload) {
$response['reload'] = true;
}
if ($extra) {
$response['extra'] = $extra;
}
echo json_encode($response);
die();
}
}