mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-07 13:14:20 +01:00
Compare commits
3 Commits
49b7c0f5d5
...
ca08df26b2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca08df26b2 | ||
|
|
60723657c2 | ||
|
09d74ed327
|
@@ -33,6 +33,7 @@ RUN set -eux; \
|
|||||||
zip \
|
zip \
|
||||||
uuid \
|
uuid \
|
||||||
gd \
|
gd \
|
||||||
|
excimer \
|
||||||
;
|
;
|
||||||
|
|
||||||
# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser
|
# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ services:
|
|||||||
APP_SECRET: ${APP_SECRET}
|
APP_SECRET: ${APP_SECRET}
|
||||||
MERCURE_PUBLISHER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET}
|
MERCURE_PUBLISHER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET}
|
||||||
MERCURE_SUBSCRIBER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET}
|
MERCURE_SUBSCRIBER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET}
|
||||||
|
MAILER_SENDER: ${MAILER_SENDER}
|
||||||
|
SENTRY_DSN: ${SENTRY_DSN}
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.tvdt.rule=Host(`tijdvoordetest.nl`)"
|
- "traefik.http.routers.tvdt.rule=Host(`tijdvoordetest.nl`)"
|
||||||
|
|||||||
@@ -4,7 +4,10 @@ when@prod:
|
|||||||
# Add request headers, cookies, IP address and the authenticated user
|
# Add request headers, cookies, IP address and the authenticated user
|
||||||
# see https://docs.sentry.io/platforms/php/data-management/data-collected/ for more info
|
# see https://docs.sentry.io/platforms/php/data-management/data-collected/ for more info
|
||||||
# send_default_pii: true
|
# send_default_pii: true
|
||||||
|
|
||||||
options:
|
options:
|
||||||
|
traces_sample_rate: 1.0
|
||||||
|
profiles_sample_rate: 1.0
|
||||||
ignore_exceptions:
|
ignore_exceptions:
|
||||||
- 'Symfony\Component\ErrorHandler\Error\FatalError'
|
- 'Symfony\Component\ErrorHandler\Error\FatalError'
|
||||||
- 'Symfony\Component\Debug\Exception\FatalErrorException'
|
- 'Symfony\Component\Debug\Exception\FatalErrorException'
|
||||||
|
|||||||
33
src/Form/AddCandidatesFormType.php
Normal file
33
src/Form/AddCandidatesFormType.php
Normal 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
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user