[PR #1873] [MERGED] feat: use PHP attribute to mark requests disabled in demo #1929

Closed
opened 2026-02-26 03:32:47 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/koel/koel/pull/1873
Author: @phanan
Created: 11/8/2024
Status: Merged
Merged: 11/8/2024
Merged by: @phanan

Base: masterHead: attr-for-demo


📝 Commits (1)

  • 675b99f feat: use PHP attribute to mark requests disabled in demo

📊 Changes

10 files changed (+104 additions, -14 deletions)

View changed files

app/Attributes/DisabledInDemo.php (+14 -0)
📝 app/Http/Controllers/API/ForgotPasswordController.php (+2 -2)
📝 app/Http/Controllers/API/Podcast/PodcastController.php (+2 -2)
📝 app/Http/Controllers/API/ProfileController.php (+2 -2)
📝 app/Http/Controllers/API/ResetPasswordController.php (+2 -2)
📝 app/Http/Controllers/Controller.php (+0 -6)
📝 app/Http/Kernel.php (+3 -0)
app/Http/Middleware/HandleDemoMode.php (+44 -0)
📝 tests/Feature/ForgotPasswordTest.php (+21 -0)
📝 tests/Feature/ProfileTest.php (+14 -0)

📄 Description

Use #[DisabledInDemo] to mark controller class/action that should be disabled in demo mode.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/koel/koel/pull/1873 **Author:** [@phanan](https://github.com/phanan) **Created:** 11/8/2024 **Status:** ✅ Merged **Merged:** 11/8/2024 **Merged by:** [@phanan](https://github.com/phanan) **Base:** `master` ← **Head:** `attr-for-demo` --- ### 📝 Commits (1) - [`675b99f`](https://github.com/koel/koel/commit/675b99fd439b60f46077948756290f5f1efa1927) feat: use PHP attribute to mark requests disabled in demo ### 📊 Changes **10 files changed** (+104 additions, -14 deletions) <details> <summary>View changed files</summary> ➕ `app/Attributes/DisabledInDemo.php` (+14 -0) 📝 `app/Http/Controllers/API/ForgotPasswordController.php` (+2 -2) 📝 `app/Http/Controllers/API/Podcast/PodcastController.php` (+2 -2) 📝 `app/Http/Controllers/API/ProfileController.php` (+2 -2) 📝 `app/Http/Controllers/API/ResetPasswordController.php` (+2 -2) 📝 `app/Http/Controllers/Controller.php` (+0 -6) 📝 `app/Http/Kernel.php` (+3 -0) ➕ `app/Http/Middleware/HandleDemoMode.php` (+44 -0) 📝 `tests/Feature/ForgotPasswordTest.php` (+21 -0) 📝 `tests/Feature/ProfileTest.php` (+14 -0) </details> ### 📄 Description Use `#[DisabledInDemo]` to mark controller class/action that should be disabled in demo mode. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 03:32:47 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#1929
No description provided.