forked from GNUsocial/gnu-social
[CORE][EXTENSIONS] Added extension (modules, plugins) loading and test plugin, which is able to handle events
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use App\Util\GSEvent;
|
||||
|
||||
use App\Util\GSEvent as Event;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
|
||||
class NetworkPublic extends AbstractController
|
||||
{
|
||||
public function __invoke()
|
||||
{
|
||||
GSEvent::handle('test', ['foobar']);
|
||||
Event::handle('Test', ['foobar']);
|
||||
|
||||
return $this->render('network/public.html.twig', []);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user