[CONTROLLER] Remove example enqueue

This commit is contained in:
Hugo Sales 2020-07-22 11:50:20 +00:00 committed by Hugo Sales
parent fc4d8bcf65
commit 2fd81e218a
1 changed files with 1 additions and 4 deletions

View File

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