forked from GNUsocial/gnu-social
[QUEUE] Add queueing wrapper, default configuration and example usage
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user