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

This commit is contained in:
Constantin Simonis 2024-12-04 18:08:03 +01:00
parent 0b8b840d12
commit edb59e3753
Signed by: csimonis
GPG Key ID: 3878FF77C24AF4D2
2 changed files with 32 additions and 6 deletions

View File

@ -5,14 +5,18 @@
DirectoryIndex /index.php DirectoryIndex /index.php
<Directory /var/www/project/public> <Directory /var/www/project/public>
AllowOverride None AllowOverride All
Order Allow,Deny Order Allow,Deny
Allow from All Require all granted
<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>
</Directory>
<Directory /var/www/project/public/bundles>
FallbackResource disabled
</Directory> </Directory>
# <Directory /var/www/project/public/bundles>
# FallbackResource disabled
# </Directory>
ErrorLog /var/log/apache2/project_error.log ErrorLog /var/log/apache2/project_error.log
CustomLog /var/log/apache2/project_access.log combined CustomLog /var/log/apache2/project_access.log combined
</VirtualHost> </VirtualHost>

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