From 9e1ce298036b9d284edfbe9a489a9118d9ab63fc Mon Sep 17 00:00:00 2001 From: Arnaud Lyard Date: Thu, 15 Jan 2026 21:03:17 +0100 Subject: [PATCH] Prod --- config/services.yaml | 83 +++++++++++++++++++------------------- src/Form/CKEditor5Type.php | 2 +- src/Form/NewsType.php | 2 +- 3 files changed, 43 insertions(+), 44 deletions(-) diff --git a/config/services.yaml b/config/services.yaml index 559c8eb..cde7693 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -4,50 +4,49 @@ # Put parameters here that don't need to change on each machine where the app is deployed # https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration parameters: - server_url: "%env(SERVER_URL)%" - oidc_auth_server_url: "%env(OIDC_AUTH_SERVER_URL)%" - oidc_client_id: "%env(OIDC_CLIENT_ID)%" - oidc_admin_username: "%env(OIDC_ADMIN_USERNAME)%" - oidc_admin_password: "%env(OIDC_ADMIN_PASSWORD)%" - oidc_realm: "%env(OIDC_REALM)%" - minio_bucket: "%env(MINIO_BUCKET)%" - minio_endpoint: "%env(MINIO_ENDPOINT)%" - + server_url: "%env(SERVER_URL)%" + oidc_auth_server_url: "%env(OIDC_AUTH_SERVER_URL)%" + oidc_client_id: "%env(OIDC_CLIENT_ID)%" + oidc_admin_username: "%env(OIDC_ADMIN_USERNAME)%" + oidc_admin_password: "%env(OIDC_ADMIN_PASSWORD)%" + oidc_realm: "%env(OIDC_REALM)%" + minio_bucket: "%env(MINIO_BUCKET)%" + minio_endpoint: "%env(MINIO_ENDPOINT)%" + services: - # default configuration for services in *this* file - _defaults: - autowire: true # Automatically injects dependencies in your services. - autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. + # default configuration for services in *this* file + _defaults: + autowire: true # Automatically injects dependencies in your services. + autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. - # makes classes in src/ available to be used as services - # this creates a service per class whose id is the fully-qualified class name - App\: - resource: "../src/" + # makes classes in src/ available to be used as services + # this creates a service per class whose id is the fully-qualified class name + App\: + resource: "../src/" - App\Service\KeycloakClientService: - arguments: - $oidc_auth_server_url: "%oidc_auth_server_url%" - $oidc_client_id: "%oidc_client_id%" - $oidc_admin_username: "%oidc_admin_username%" - $oidc_admin_password: "%oidc_admin_password%" - $oidc_realm: "%oidc_realm%" + App\Service\KeycloakClientService: + arguments: + $oidc_auth_server_url: "%oidc_auth_server_url%" + $oidc_client_id: "%oidc_client_id%" + $oidc_admin_username: "%oidc_admin_username%" + $oidc_admin_password: "%oidc_admin_password%" + $oidc_realm: "%oidc_realm%" - App\Service\ImageService: + App\Service\ImageService: - app.minio_client: - class: Aws\S3\S3Client - arguments: - - - version: 'latest' - region: '%env(MINIO_REGION)%' - endpoint: '%env(MINIO_ENDPOINT)%' - use_path_style_endpoint: true - credentials: - key: '%env(MINIO_KEY)%' - secret: '%env(MINIO_SECRET)%' - App\Form\Type\CKEditor5Type: - arguments: - $stimulusHelper: '@stimulus.helper' - tags: [ 'form.type' ] - # add more service definitions when explicit configuration is needed - # please note that last definitions always *replace* previous ones + app.minio_client: + class: Aws\S3\S3Client + arguments: + - version: "latest" + region: "%env(MINIO_REGION)%" + endpoint: "%env(MINIO_ENDPOINT)%" + use_path_style_endpoint: true + credentials: + key: "%env(MINIO_KEY)%" + secret: "%env(MINIO_SECRET)%" + App\Form\CKEditor5Type: + arguments: + $stimulusHelper: "@stimulus.helper" + tags: ["form.type"] + # add more service definitions when explicit configuration is needed + # please note that last definitions always *replace* previous ones diff --git a/src/Form/CKEditor5Type.php b/src/Form/CKEditor5Type.php index d4e7693..76d29b7 100644 --- a/src/Form/CKEditor5Type.php +++ b/src/Form/CKEditor5Type.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace App\Form\Type; +namespace App\Form; use Symfony\Component\DependencyInjection\Attribute\Autowire; use Symfony\Component\Form\AbstractType; diff --git a/src/Form/NewsType.php b/src/Form/NewsType.php index 3c7536f..53b5014 100644 --- a/src/Form/NewsType.php +++ b/src/Form/NewsType.php @@ -3,7 +3,7 @@ namespace App\Form; use App\Entity\News; -use App\Form\Type\CKEditor5Type; +use App\Form\CKEditor5Type; use Dom\Text; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Symfony\Component\Form\AbstractType;