From 8a2c4bc1a173d4edbe3b5fcceb4cd822093e5369 Mon Sep 17 00:00:00 2001 From: Cedrick Oka Baidai Date: Fri, 27 Sep 2019 18:42:25 +0000 Subject: [PATCH] * Improve env values configuration for oka_file bundle. --- coka/file-bundle/3.0/config/packages/oka_file.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/coka/file-bundle/3.0/config/packages/oka_file.yaml b/coka/file-bundle/3.0/config/packages/oka_file.yaml index 589525ed..5f72a66d 100644 --- a/coka/file-bundle/3.0/config/packages/oka_file.yaml +++ b/coka/file-bundle/3.0/config/packages/oka_file.yaml @@ -1,6 +1,15 @@ +parameters: + # Adds a fallback OKAFILE_STORAGE_ROOT_PATH if the env var is not set. + # Adds a fallback OKAFILE_STORAGE_WEB_SERVER_HOST if the env var is not set. + # This allows you to run cache:warmup even if your + # environment variables are not available yet. + # You should not need to change this value. + env(OKAFILE_STORAGE_ROOT_PATH): '%kernel.project_dir%/public' + env(OKAFILE_STORAGE_WEB_SERVER_HOST): 'localhost' + oka_file: db_driver: orm storage: - root_path: '%env(OKAFILE_STORAGE_ROOT_PATH)%' + root_path: '%env(resolve:OKAFILE_STORAGE_ROOT_PATH)%' webserver: - host: '%env(OKAFILE_STORAGE_WEB_SERVER_HOST)%' + host: '%env(resolve:OKAFILE_STORAGE_WEB_SERVER_HOST)%'