[CORE][EXTENSIONS] Added extension (modules, plugins) loading and test plugin, which is able to handle events

This commit is contained in:
Hugo Sales
2020-03-20 22:10:01 +00:00
committed by Hugo Sales
parent 2f5bdeed62
commit d8d2ad3e10
12 changed files with 274 additions and 42 deletions

View File

@@ -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', []);
}
}