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
This commit is contained in:
Joey
2025-11-10 09:32:41 +01:00
committed by GitHub
parent 999aff47a8
commit 2743443c75
2 changed files with 24 additions and 0 deletions
@@ -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
@@ -0,0 +1,12 @@
{
"bundles": {
"Calliostro\\LastfmBundle\\CalliostroLastfmBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"LASTFM_API_KEY": "",
"LASTFM_SECRET": ""
}
}