From 980f9be48522ef5bd03b85aa434a22abcaa452e5 Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Wed, 29 Jan 2025 02:53:22 -0500 Subject: [PATCH] initial version for survos/bunny-bundle (#1711) * initial version for survos/bunny-bundle * fix namespace * fix yaml spacing * add the api_key * Update survos/bunny-bundle/1.5/config/packages/survos_bunny.yaml Co-authored-by: Fabien Potencier * Update survos/bunny-bundle/1.5/manifest.json Co-authored-by: Dmitri Perunov * Update survos/bunny-bundle/1.5/post-install.txt Co-authored-by: Dmitri Perunov --------- Co-authored-by: Fabien Potencier Co-authored-by: Dmitri Perunov --- .../1.5/config/packages/survos_bunny.yaml | 5 +++++ .../bunny-bundle/1.5/config/routes/survos_bunny.yaml | 4 ++++ survos/bunny-bundle/1.5/manifest.json | 11 +++++++++++ survos/bunny-bundle/1.5/post-install.txt | 10 ++++++++++ 4 files changed, 30 insertions(+) create mode 100644 survos/bunny-bundle/1.5/config/packages/survos_bunny.yaml create mode 100644 survos/bunny-bundle/1.5/config/routes/survos_bunny.yaml create mode 100644 survos/bunny-bundle/1.5/manifest.json create mode 100644 survos/bunny-bundle/1.5/post-install.txt diff --git a/survos/bunny-bundle/1.5/config/packages/survos_bunny.yaml b/survos/bunny-bundle/1.5/config/packages/survos_bunny.yaml new file mode 100644 index 00000000..2ab4f54f --- /dev/null +++ b/survos/bunny-bundle/1.5/config/packages/survos_bunny.yaml @@ -0,0 +1,5 @@ +survos_bunny: + # this is generated automatically with bin/console bunny:config + api_key: '%env(BUNNY_API_KEY)%' + # optionally set a default storage zone + #storage_zone: diff --git a/survos/bunny-bundle/1.5/config/routes/survos_bunny.yaml b/survos/bunny-bundle/1.5/config/routes/survos_bunny.yaml new file mode 100644 index 00000000..20e419e8 --- /dev/null +++ b/survos/bunny-bundle/1.5/config/routes/survos_bunny.yaml @@ -0,0 +1,4 @@ +survos_bunny: + resource: '@SurvosBunnyBundle/config/routes.yaml' + # consider adding /admin to this route and securing it in security.yaml + prefix: '/bunny' diff --git a/survos/bunny-bundle/1.5/manifest.json b/survos/bunny-bundle/1.5/manifest.json new file mode 100644 index 00000000..8fb1df5c --- /dev/null +++ b/survos/bunny-bundle/1.5/manifest.json @@ -0,0 +1,11 @@ +{ + "bundles": { + "Survos\\BunnyBundle\\SurvosBunnyBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "BUNNY_API_KEY": "" + } +} diff --git a/survos/bunny-bundle/1.5/post-install.txt b/survos/bunny-bundle/1.5/post-install.txt new file mode 100644 index 00000000..fdaf0c35 --- /dev/null +++ b/survos/bunny-bundle/1.5/post-install.txt @@ -0,0 +1,10 @@ + + success + + + * Next steps: + 1. Get the main API key from https://dash.bunny.net/account/api-key + 2. Optionally add the key to your environment. Otherwise, run the command below with the API key as the argument. + 3. bin/console bunny:config >> .env.local + 4. run bin/console bunny:list to see the zones + 5. Only add the API keys you need to the production environment.