From d9042d9bb8d6853325617188019d0a3b42f56e57 Mon Sep 17 00:00:00 2001 From: Silas Joisten Date: Tue, 6 May 2025 11:00:10 +0300 Subject: [PATCH] Add `storyblok/symfony-bundle` `1.3` recipe (#1790) * Add `storyblok/symfony-bundle` `1.3` recipe * Update storyblok/symfony-bundle/1.3/config/routes/storyblok.yaml --- .../1.3/config/packages/storyblok.yaml | 18 ++++++++++++++++++ .../1.3/config/routes/storyblok.yaml | 5 +++++ storyblok/symfony-bundle/1.3/manifest.json | 15 +++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 storyblok/symfony-bundle/1.3/config/packages/storyblok.yaml create mode 100644 storyblok/symfony-bundle/1.3/config/routes/storyblok.yaml create mode 100644 storyblok/symfony-bundle/1.3/manifest.json diff --git a/storyblok/symfony-bundle/1.3/config/packages/storyblok.yaml b/storyblok/symfony-bundle/1.3/config/packages/storyblok.yaml new file mode 100644 index 00000000..e624a3a5 --- /dev/null +++ b/storyblok/symfony-bundle/1.3/config/packages/storyblok.yaml @@ -0,0 +1,18 @@ +storyblok: + base_uri: '%env(STORYBLOK_API_BASE_URI)%' + token: '%env(STORYBLOK_API_TOKEN)%' + # version: '%env(STORYBLOK_VERSION)%' + # assets_token: '%env(STORYBLOK_ASSETS_API_TOKEN)%' + # webhook_secret: '%env(STORYBLOK_WEBHOOK_SECRET)%' + # auto_resolve_relations: true + # controller: + # ascending_redirect_fallback: true + +when@prod: + storyblok: + controller: + cache: + public: true + max_age: 3600 + smax_age: 3600 + must_revalidate: true diff --git a/storyblok/symfony-bundle/1.3/config/routes/storyblok.yaml b/storyblok/symfony-bundle/1.3/config/routes/storyblok.yaml new file mode 100644 index 00000000..27680df5 --- /dev/null +++ b/storyblok/symfony-bundle/1.3/config/routes/storyblok.yaml @@ -0,0 +1,5 @@ +storyblok_webhook: + resource: '@StoryblokBundle/config/routes/webhook.php' + +storyblok_content_type: + resource: '@StoryblokBundle/config/routes/content_type.php' diff --git a/storyblok/symfony-bundle/1.3/manifest.json b/storyblok/symfony-bundle/1.3/manifest.json new file mode 100644 index 00000000..4682ead2 --- /dev/null +++ b/storyblok/symfony-bundle/1.3/manifest.json @@ -0,0 +1,15 @@ +{ + "bundles": { + "Storyblok\\Bundle\\StoryblokBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "STORYBLOK_API_BASE_URI": "https://api.storyblok.com", + "STORYBLOK_API_TOKEN": "", + "#1": "STORYBLOK_VERSION=", + "#2": "STORYBLOK_ASSETS_API_TOKEN=", + "#3": "STORYBLOK_WEBHOOK_SECRET=" + } +}