forked from GNUsocial/gnu-social
[CONTROLLER] Remove example enqueue
This commit is contained in:
parent
fc4d8bcf65
commit
2fd81e218a
@ -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'],
|
||||||
|
Loading…
Reference in New Issue
Block a user