From 772c15fcd17644f589a58175d24fc59831a4a259 Mon Sep 17 00:00:00 2001 From: Cedrick Oka Baidai Date: Thu, 26 Sep 2019 18:23:01 +0000 Subject: [PATCH 1/5] * Update recipre coka/file-bundle. * Add a recipe for coka/rate-limit-bundle version 1.0. --- coka/file-bundle/3.0/config/packages/oka_file.yaml | 1 - coka/file-bundle/3.0/manifest.json | 1 - .../1.0/config/packages/oka_rate_limit.yaml | 3 +++ coka/rate-limit-bundle/1.0/manifest.json | 8 ++++++++ 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 coka/rate-limit-bundle/1.0/config/packages/oka_rate_limit.yaml create mode 100644 coka/rate-limit-bundle/1.0/manifest.json 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 c2d81c1e..589525ed 100644 --- a/coka/file-bundle/3.0/config/packages/oka_file.yaml +++ b/coka/file-bundle/3.0/config/packages/oka_file.yaml @@ -4,4 +4,3 @@ oka_file: root_path: '%env(OKAFILE_STORAGE_ROOT_PATH)%' webserver: host: '%env(OKAFILE_STORAGE_WEB_SERVER_HOST)%' - diff --git a/coka/file-bundle/3.0/manifest.json b/coka/file-bundle/3.0/manifest.json index 819a632e..e4f6ecdd 100644 --- a/coka/file-bundle/3.0/manifest.json +++ b/coka/file-bundle/3.0/manifest.json @@ -10,4 +10,3 @@ "OKAFILE_STORAGE_WEB_SERVER_HOST": "localhost" } } - diff --git a/coka/rate-limit-bundle/1.0/config/packages/oka_rate_limit.yaml b/coka/rate-limit-bundle/1.0/config/packages/oka_rate_limit.yaml new file mode 100644 index 00000000..4ab2217b --- /dev/null +++ b/coka/rate-limit-bundle/1.0/config/packages/oka_rate_limit.yaml @@ -0,0 +1,3 @@ +oka_rate_limit: + configs: + - {path: ''} diff --git a/coka/rate-limit-bundle/1.0/manifest.json b/coka/rate-limit-bundle/1.0/manifest.json new file mode 100644 index 00000000..a977cdec --- /dev/null +++ b/coka/rate-limit-bundle/1.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Oka\\RateLimitBundle\\OkaRateLimitBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} From 8a2c4bc1a173d4edbe3b5fcceb4cd822093e5369 Mon Sep 17 00:00:00 2001 From: Cedrick Oka Baidai Date: Fri, 27 Sep 2019 18:42:25 +0000 Subject: [PATCH 2/5] * 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)%' From 046c95c2a5b0fe4eace394337ecdcfb74d3095fb Mon Sep 17 00:00:00 2001 From: Cedrick Oka Baidai Date: Fri, 4 Oct 2019 10:34:22 +0000 Subject: [PATCH 3/5] * Fix bad pull request. --- coka/file-bundle/3.0/config/packages/oka_file.yaml | 13 ++----------- 1 file changed, 2 insertions(+), 11 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 5f72a66d..589525ed 100644 --- a/coka/file-bundle/3.0/config/packages/oka_file.yaml +++ b/coka/file-bundle/3.0/config/packages/oka_file.yaml @@ -1,15 +1,6 @@ -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(resolve:OKAFILE_STORAGE_ROOT_PATH)%' + root_path: '%env(OKAFILE_STORAGE_ROOT_PATH)%' webserver: - host: '%env(resolve:OKAFILE_STORAGE_WEB_SERVER_HOST)%' + host: '%env(OKAFILE_STORAGE_WEB_SERVER_HOST)%' From 969bb8eb9299d2434649ddfde2f1bbe02b09811f Mon Sep 17 00:00:00 2001 From: Cedrick Oka Baidai Date: Fri, 4 Oct 2019 16:02:54 +0000 Subject: [PATCH 4/5] * Add a recipe for coka/rest-request-validator-bundle version 1.0. --- .../1.0/config/packages/oka_rest_request_validator.yaml | 3 +++ coka/rest-request-validator-bundle/1.0/manifest.json | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 coka/rest-request-validator-bundle/1.0/config/packages/oka_rest_request_validator.yaml create mode 100644 coka/rest-request-validator-bundle/1.0/manifest.json diff --git a/coka/rest-request-validator-bundle/1.0/config/packages/oka_rest_request_validator.yaml b/coka/rest-request-validator-bundle/1.0/config/packages/oka_rest_request_validator.yaml new file mode 100644 index 00000000..b1d17858 --- /dev/null +++ b/coka/rest-request-validator-bundle/1.0/config/packages/oka_rest_request_validator.yaml @@ -0,0 +1,3 @@ +oka_rest_request_validator: + exception: + enabled: true diff --git a/coka/rest-request-validator-bundle/1.0/manifest.json b/coka/rest-request-validator-bundle/1.0/manifest.json new file mode 100644 index 00000000..aefe617f --- /dev/null +++ b/coka/rest-request-validator-bundle/1.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Oka\\RESTRequestValidatorBundle\\OkaRESTRequestValidatorBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} From 5d76de978c85f2ae74c6f27e672c0449de169bbe Mon Sep 17 00:00:00 2001 From: Cedrick Oka Baidai Date: Wed, 13 Nov 2019 13:21:24 +0000 Subject: [PATCH 5/5] * [coka/file-bundle] Fixed bug: container parameter not resolved. --- coka/file-bundle/3.0/config/packages/oka_file.yaml | 4 ++-- 1 file changed, 2 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..8f4da55d 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,6 @@ 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)%'