remove debug stuff
All checks were successful
build / build (push) Successful in 3m54s

This commit is contained in:
Constantin Simonis 2024-12-04 18:29:46 +01:00
parent d892ffed34
commit 502a5d5bda
Signed by: csimonis
GPG Key ID: 3878FF77C24AF4D2
2 changed files with 0 additions and 39 deletions

View File

@ -1,17 +0,0 @@
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
class test extends AbstractController
{
#[Route(path: '/test', name: 'app_test', methods: Request::METHOD_GET)]
public function test(): Response
{
return new Response('test');
}
}

View File

@ -1,22 +0,0 @@
<?php
namespace App;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\ExceptionEvent;
use Symfony\Component\HttpKernel\KernelEvents;
class test implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
return [KernelEvents::EXCEPTION => 'onKernelException'];
}
public function onKernelException(ExceptionEvent $event)
{
$event->setResponse(new Response('test'));
}
}