gnu-social/plugins/Test/Controller/TestController.php

16 lines
364 B
PHP
Raw Normal View History

<?php
2020-08-03 21:53:40 +01:00
namespace Plugin\Test\Controller;
2020-08-03 21:53:40 +01:00
use App\Core\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
2020-08-03 21:53:40 +01:00
class TestController extends Controller
{
2020-08-03 21:53:40 +01:00
public function __invoke(Request $request)
{
2020-08-03 21:53:40 +01:00
return new Response('<html style="background: #333; color: #ccc"> Test controller </div>');
}
}