TestController.php 347 B

123456789101112131415
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. class TestController extends AbstractController
  6. {
  7. public function __invoke()
  8. {
  9. return new Response('<div style="background: #333; text-color: #999"> Test controller </div>');
  10. }
  11. }