This commit is contained in:
2026-01-15 21:03:17 +01:00
parent acbd917c3f
commit 9e1ce29803
3 changed files with 43 additions and 44 deletions

View File

@@ -4,50 +4,49 @@
# Put parameters here that don't need to change on each machine where the app is deployed # 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 # https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters: parameters:
server_url: "%env(SERVER_URL)%" server_url: "%env(SERVER_URL)%"
oidc_auth_server_url: "%env(OIDC_AUTH_SERVER_URL)%" oidc_auth_server_url: "%env(OIDC_AUTH_SERVER_URL)%"
oidc_client_id: "%env(OIDC_CLIENT_ID)%" oidc_client_id: "%env(OIDC_CLIENT_ID)%"
oidc_admin_username: "%env(OIDC_ADMIN_USERNAME)%" oidc_admin_username: "%env(OIDC_ADMIN_USERNAME)%"
oidc_admin_password: "%env(OIDC_ADMIN_PASSWORD)%" oidc_admin_password: "%env(OIDC_ADMIN_PASSWORD)%"
oidc_realm: "%env(OIDC_REALM)%" oidc_realm: "%env(OIDC_REALM)%"
minio_bucket: "%env(MINIO_BUCKET)%" minio_bucket: "%env(MINIO_BUCKET)%"
minio_endpoint: "%env(MINIO_ENDPOINT)%" minio_endpoint: "%env(MINIO_ENDPOINT)%"
services: services:
# default configuration for services in *this* file # default configuration for services in *this* file
_defaults: _defaults:
autowire: true # Automatically injects dependencies in your services. autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
# makes classes in src/ available to be used as services # makes classes in src/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name # this creates a service per class whose id is the fully-qualified class name
App\: App\:
resource: "../src/" resource: "../src/"
App\Service\KeycloakClientService: App\Service\KeycloakClientService:
arguments: arguments:
$oidc_auth_server_url: "%oidc_auth_server_url%" $oidc_auth_server_url: "%oidc_auth_server_url%"
$oidc_client_id: "%oidc_client_id%" $oidc_client_id: "%oidc_client_id%"
$oidc_admin_username: "%oidc_admin_username%" $oidc_admin_username: "%oidc_admin_username%"
$oidc_admin_password: "%oidc_admin_password%" $oidc_admin_password: "%oidc_admin_password%"
$oidc_realm: "%oidc_realm%" $oidc_realm: "%oidc_realm%"
App\Service\ImageService: App\Service\ImageService:
app.minio_client: app.minio_client:
class: Aws\S3\S3Client class: Aws\S3\S3Client
arguments: arguments:
- - version: "latest"
version: 'latest' region: "%env(MINIO_REGION)%"
region: '%env(MINIO_REGION)%' endpoint: "%env(MINIO_ENDPOINT)%"
endpoint: '%env(MINIO_ENDPOINT)%' use_path_style_endpoint: true
use_path_style_endpoint: true credentials:
credentials: key: "%env(MINIO_KEY)%"
key: '%env(MINIO_KEY)%' secret: "%env(MINIO_SECRET)%"
secret: '%env(MINIO_SECRET)%' App\Form\CKEditor5Type:
App\Form\Type\CKEditor5Type: arguments:
arguments: $stimulusHelper: "@stimulus.helper"
$stimulusHelper: '@stimulus.helper' tags: ["form.type"]
tags: [ 'form.type' ] # add more service definitions when explicit configuration is needed
# add more service definitions when explicit configuration is needed # please note that last definitions always *replace* previous ones
# please note that last definitions always *replace* previous ones

View File

@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace App\Form\Type; namespace App\Form;
use Symfony\Component\DependencyInjection\Attribute\Autowire; use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\AbstractType;

View File

@@ -3,7 +3,7 @@
namespace App\Form; namespace App\Form;
use App\Entity\News; use App\Entity\News;
use App\Form\Type\CKEditor5Type; use App\Form\CKEditor5Type;
use Dom\Text; use Dom\Text;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\AbstractType;