cc72373e3d
This has the benefit of requiring fewer code changes, as well as providing a better isolation between GNU social and symfony, useful in case the framework needs to be changed
17 lines
325 B
PHP
17 lines
325 B
PHP
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
use App\Util\GSEvent;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
|
|
class NetworkPublic extends AbstractController
|
|
{
|
|
public function __invoke()
|
|
{
|
|
GSEvent::handle('test', ['foobar']);
|
|
return $this->render('network/public.html.twig', []);
|
|
}
|
|
}
|