mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
16 lines
346 B
PHP
16 lines
346 B
PHP
<?php
|
|
/** @phpstan-var \Gazelle\User $Viewer */
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Gazelle;
|
|
|
|
$notifier = 'Gazelle\\User\\Notification\\' . $_POST['type'];
|
|
if (!class_exists($notifier)) {
|
|
json_die('failure', 'no such notification');
|
|
}
|
|
|
|
json_print('success', [
|
|
'clear' => (new $notifier($Viewer))->clear() /** @phpstan-ignore-line */
|
|
]);
|