3 Commits

Author SHA1 Message Date
Marijn Doeve
ca08df26b2 Add Sentry config 2025-04-29 08:34:55 +02:00
Marijn Doeve
60723657c2 Add missing env vars 2025-04-29 08:17:50 +02:00
09d74ed327 Add lost file 2025-04-29 07:55:17 +02:00
4 changed files with 48 additions and 9 deletions

View File

@@ -33,6 +33,7 @@ RUN set -eux; \
zip \
uuid \
gd \
excimer \
;
# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser

View File

@@ -8,6 +8,8 @@ services:
APP_SECRET: ${APP_SECRET}
MERCURE_PUBLISHER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET}
MERCURE_SUBSCRIBER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET}
MAILER_SENDER: ${MAILER_SENDER}
SENTRY_DSN: ${SENTRY_DSN}
labels:
- "traefik.enable=true"
- "traefik.http.routers.tvdt.rule=Host(`tijdvoordetest.nl`)"

View File

@@ -4,7 +4,10 @@ when@prod:
# Add request headers, cookies, IP address and the authenticated user
# see https://docs.sentry.io/platforms/php/data-management/data-collected/ for more info
# send_default_pii: true
options:
traces_sample_rate: 1.0
profiles_sample_rate: 1.0
ignore_exceptions:
- 'Symfony\Component\ErrorHandler\Error\FatalError'
- 'Symfony\Component\Debug\Exception\FatalErrorException'

View File

@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
namespace App\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Contracts\Translation\TranslatorInterface;
/** @extends AbstractType<null> */
class AddCandidatesFormType extends AbstractType
{
public function __construct(private readonly TranslatorInterface $translator) {}
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add('candidates', TextareaType::class, [
'label' => $this->translator->trans('Candidates'),
])
;
}
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults([
// Configure your form options here
]);
}
}