From 2743443c754045fd655a2cb59b86fa2e3ee54de7 Mon Sep 17 00:00:00 2001 From: Joey Date: Mon, 10 Nov 2025 09:32:41 +0100 Subject: [PATCH] Add Last.fm Client Bundle recipe v2.0 (#1881) * Add Last.fm Client Bundle recipe v2.0 - Add recipe for calliostro/last-fm-client-bundle v2.0 - Updates configuration key from calliostro_last_fm_client to calliostro_lastfm - Changes api_key and secret configuration structure - Adds optional user_agent and rate_limiter configuration - Removes session key from environment variables (deprecated) - Symfony bundle for Last.fm API integration * Fix formatting: Add newlines and ensure 4-space indentation - Add missing newlines at end of files - Ensure YAML uses 4-space indentation - Fix Symfony recipes coding standards compliance * Fix YAML indentation: Remove spaces from empty lines - Remove 4 spaces from empty lines (lines 4, 7, 10) - Empty lines must be completely empty per Symfony standards - Fixes GitHub Actions indentation check * Fix bundle class name for v2.0 - Update bundle class from CalliostroLastFmClientBundle to CalliostroLastfmBundle - Update namespace from LastFmClientBundle to LastfmBundle - Matches actual bundle class in v2.0.0-beta.1 --- .../2.0/config/calliostro_lastfm.yaml | 12 ++++++++++++ calliostro/last-fm-client-bundle/2.0/manifest.json | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 calliostro/last-fm-client-bundle/2.0/config/calliostro_lastfm.yaml create mode 100644 calliostro/last-fm-client-bundle/2.0/manifest.json diff --git a/calliostro/last-fm-client-bundle/2.0/config/calliostro_lastfm.yaml b/calliostro/last-fm-client-bundle/2.0/config/calliostro_lastfm.yaml new file mode 100644 index 00000000..42f82b89 --- /dev/null +++ b/calliostro/last-fm-client-bundle/2.0/config/calliostro_lastfm.yaml @@ -0,0 +1,12 @@ +calliostro_lastfm: + # Required: API Key (get from https://www.last.fm/api/account/create) + api_key: '%env(LASTFM_API_KEY)%' + + # Required for write operations: API Secret + api_secret: '%env(LASTFM_SECRET)%' + + # Optional: HTTP User-Agent header for API requests + # user_agent: 'MyApp/1.0 +https://myapp.com' + + # Optional: Professional rate limiting (requires symfony/rate-limiter) + # rate_limiter: lastfm_api # Your configured RateLimiterFactory service diff --git a/calliostro/last-fm-client-bundle/2.0/manifest.json b/calliostro/last-fm-client-bundle/2.0/manifest.json new file mode 100644 index 00000000..8ff8d3e4 --- /dev/null +++ b/calliostro/last-fm-client-bundle/2.0/manifest.json @@ -0,0 +1,12 @@ +{ + "bundles": { + "Calliostro\\LastfmBundle\\CalliostroLastfmBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "LASTFM_API_KEY": "", + "LASTFM_SECRET": "" + } +}