fix: errors preventing builds

This commit is contained in:
Brock H Caldwell
2026-03-08 20:24:59 -05:00
parent ed2f797ac2
commit aa0ce72d35
3 changed files with 41 additions and 38 deletions

2
.env
View File

@@ -13,7 +13,7 @@
# #
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2). # Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration # https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
APP_URL=
###> symfony/framework-bundle ### ###> symfony/framework-bundle ###
APP_ENV=prod APP_ENV=prod
APP_SECRET= APP_SECRET=

View File

@@ -11,7 +11,7 @@ return [
OneToMany\RichBundle\RichBundle::class => ['all' => true], OneToMany\RichBundle\RichBundle::class => ['all' => true],
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true], Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true], Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['prod' => true, 'dev' => true, 'test' => true], Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true], Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
Symfony\UX\LiveComponent\LiveComponentBundle::class => ['all' => true], Symfony\UX\LiveComponent\LiveComponentBundle::class => ['all' => true],
Symfony\Bundle\MercureBundle\MercureBundle::class => ['all' => true], Symfony\Bundle\MercureBundle\MercureBundle::class => ['all' => true],

View File

@@ -1,4 +1,5 @@
sentry: when@prod: &prod
sentry:
register_error_listener: true # Disables the ErrorListener to avoid duplicated log in sentry register_error_listener: true # Disables the ErrorListener to avoid duplicated log in sentry
register_error_handler: true # Disables the ErrorListener, ExceptionListener and FatalErrorListener integrations of the base PHP SDK register_error_handler: true # Disables the ErrorListener, ExceptionListener and FatalErrorListener integrations of the base PHP SDK
@@ -18,13 +19,13 @@ sentry:
twig: # templating engine twig: # templating engine
enabled: true enabled: true
services: services:
# (Optionally) Configure the breadcrumb handler as a service (needed for the breadcrumb Monolog handler) # (Optionally) Configure the breadcrumb handler as a service (needed for the breadcrumb Monolog handler)
Sentry\Monolog\BreadcrumbHandler: Sentry\Monolog\BreadcrumbHandler:
arguments: arguments:
- '@Sentry\State\HubInterface' - '@Sentry\State\HubInterface'
- !php/const Monolog\Logger::INFO # Configures the level of messages to capture as breadcrumbs - !php/const Monolog\Logger::INFO # Configures the level of messages to capture as breadcrumbs
monolog: monolog:
handlers: handlers:
# (Optionally) Register the breadcrumb handler as a Monolog handler # (Optionally) Register the breadcrumb handler as a Monolog handler
sentry_breadcrumbs: sentry_breadcrumbs:
@@ -38,3 +39,5 @@ monolog:
hub_id: Sentry\State\HubInterface hub_id: Sentry\State\HubInterface
fill_extra_context: true # Enables sending monolog context to Sentry fill_extra_context: true # Enables sending monolog context to Sentry
process_psr_3_messages: false # Disables the resolution of PSR-3 placeholders in reported messages process_psr_3_messages: false # Disables the resolution of PSR-3 placeholders in reported messages
when@dev: *prod