From d8e3417c38f6d320feab44745e5c165260d8e359 Mon Sep 17 00:00:00 2001 From: Joey Date: Sat, 13 Sep 2025 08:11:32 +0200 Subject: [PATCH] Add Discogs Bundle recipe v4.0 (#1855) * Add Discogs Bundle recipe v4.0 - Add recipe for calliostro/discogs-bundle v4.0 - Supports Personal Access Token and OAuth authentication - Includes configuration options with detailed comments - Symfony bundle for Discogs API integration * Fix YAML indentation to use 4 spaces --- .../4.0/config/calliostro_discogs.yaml | 17 +++++++++++++++++ calliostro/discogs-bundle/4.0/manifest.json | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 calliostro/discogs-bundle/4.0/config/calliostro_discogs.yaml create mode 100644 calliostro/discogs-bundle/4.0/manifest.json diff --git a/calliostro/discogs-bundle/4.0/config/calliostro_discogs.yaml b/calliostro/discogs-bundle/4.0/config/calliostro_discogs.yaml new file mode 100644 index 00000000..cb5c99dc --- /dev/null +++ b/calliostro/discogs-bundle/4.0/config/calliostro_discogs.yaml @@ -0,0 +1,17 @@ +calliostro_discogs: + # Recommended: Personal Access Token (get from https://www.discogs.com/settings/developers) + # personal_access_token: '%env(DISCOGS_PERSONAL_ACCESS_TOKEN)%' + + # Alternative: Consumer credentials for OAuth applications + # Get from https://www.discogs.com/applications + # consumer_key: '%env(DISCOGS_CONSUMER_KEY)%' + # consumer_secret: '%env(DISCOGS_CONSUMER_SECRET)%' + + # Optional: HTTP User-Agent header for API requests + # Default: 'DiscogsClient/4.0.0 (+https://github.com/calliostro/php-discogs-api)' + # user_agent: 'MyApp/1.0 +https://myapp.com' + + # Optional: Rate limiting configuration (default values shown) + # throttle: + # enabled: true + # microseconds: 1000000 # 1 second delay between requests diff --git a/calliostro/discogs-bundle/4.0/manifest.json b/calliostro/discogs-bundle/4.0/manifest.json new file mode 100644 index 00000000..d60a69bf --- /dev/null +++ b/calliostro/discogs-bundle/4.0/manifest.json @@ -0,0 +1,13 @@ +{ + "bundles": { + "Calliostro\\DiscogsBundle\\CalliostroDiscogsBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "#DISCOGS_PERSONAL_ACCESS_TOKEN": "", + "#DISCOGS_CONSUMER_KEY": "", + "#DISCOGS_CONSUMER_SECRET": "" + } +}