forked from GNUsocial/gnu-social
[MODULES] Rename extensions to modules, add example plugin, change plugin location
This commit is contained in:
14
plugins/Test/Controller/TestController.php
Normal file
14
plugins/Test/Controller/TestController.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class TestController extends AbstractController
|
||||
{
|
||||
public function __invoke()
|
||||
{
|
||||
return new Response('<div style="background: #333; text: #999"> Test controller </div>');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user