[CONTROLLER] Remove example enqueue

This commit is contained in:
Hugo Sales 2020-07-22 11:50:20 +00:00 committed by Hugo Sales
parent 59fcd042e9
commit df4d246ede
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -31,19 +31,16 @@
namespace App\Controller;
use App\Core\Controller;
use App\Core\Queue\Queue;
class NetworkPublic extends Controller
{
public function onPost()
{
return ['_template' => 'network/public.html.twig'];
return ['notices' => ['some notice', 'some other notice', 'some other more diferent notice']];
}
public function handle()
{
Queue::enqueue('Yo, test', 'network_public');
return [
'_template' => 'network/public.html.twig',
'notices' => ['some notice', 'some other notice', 'some other more diferent notice'],