[QUEUE] Add queueing wrapper, default configuration and example usage

This commit is contained in:
Hugo Sales
2020-07-09 15:00:58 +00:00
committed by Hugo Sales
parent 69341880d3
commit 47ab835549
10 changed files with 217 additions and 2 deletions

View File

@@ -31,6 +31,7 @@
namespace App\Controller;
use App\Core\Controller;
use App\Core\Queue\Queue;
class NetworkPublic extends Controller
{
@@ -41,6 +42,8 @@ class NetworkPublic extends Controller
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'],