From 804bcf9e7a7c030fe7e920ed41d772f658274903 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Fri, 27 Mar 2026 14:24:02 +0100 Subject: [PATCH] =?UTF-8?q?Datenverzeichnis-Parameter=20und=20Dependency?= =?UTF-8?q?=20Injection=20f=C3=BCr=20`$dataDir`=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/services.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/services.yaml b/config/services.yaml index 79b8ce2..83cd351 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -7,12 +7,15 @@ # 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: + app.data_dir: '%kernel.project_dir%/var/data' 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. + bind: + string $dataDir: '%app.data_dir%' # makes classes in src/ available to be used as services # this creates a service per class whose id is the fully-qualified class name