test
All checks were successful
build / build (push) Successful in 3m55s

This commit is contained in:
2024-12-04 18:08:03 +01:00
parent 0b8b840d12
commit edb59e3753
2 changed files with 32 additions and 6 deletions

22
src/test.php Normal file
View File

@ -0,0 +1,22 @@
<?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'));
}
}