dockerize project #2

Merged
csimonis merged 38 commits from feature/build into main 2024-12-04 17:33:43 +00:00
2 changed files with 0 additions and 39 deletions
Showing only changes of commit 502a5d5bda - Show all commits

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'));
}
}