Make service region configurable

This commit is contained in:
biondizzle
2025-06-05 10:14:46 -04:00
parent b7c8699ae6
commit bf98b52571
4 changed files with 20 additions and 8 deletions

View File

@@ -5,6 +5,7 @@
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters:
s3.storage_path: '%kernel.project_dir%/var/s3storage'
app.region: '%env(APP_REGION)%'
services:
# default configuration for services in *this* file
@@ -24,4 +25,5 @@ services:
# please note that last definitions always *replace* previous ones
App\Service\S3Service:
arguments:
$storageBasePath: '%s3.storage_path%'
$storageBasePath: '%s3.storage_path%'
$region: '%app.region%'