feaee1b238
- Adapt the existing event system to rely on Symfony's event dispatcher
18 lines
372 B
PHP
18 lines
372 B
PHP
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
|
|
use App\Util\GSEvent;
|
|
|
|
class NetworkPublic extends AbstractController
|
|
{
|
|
public function __invoke()
|
|
{
|
|
GSEvent::handle('test', ['foobar']);
|
|
return $this->render('network/public.html.twig', []);
|
|
}
|
|
}
|