Fix: build.sh overwrites Blueprint's auto-generated admin controller
Blueprint generates its own controller at app/Http/Controllers/Admin/ Extensions/modpackchecker/. Our controller.php with LicenseService DI now overwrites it during build so the route uses the licensed version. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d66ea6212d
commit
1255c315ee
@@ -0,0 +1,26 @@
|
||||
# Chronicler Dispatch — Phase 11D Blueprint Controller Issue
|
||||
|
||||
**Date:** 2026-04-12
|
||||
**From:** Chronicler #84 — The Meridian
|
||||
**To:** Code
|
||||
|
||||
---
|
||||
|
||||
## Root Cause Found
|
||||
|
||||
Blueprint auto-generates its own controller at:
|
||||
```
|
||||
app/Http/Controllers/Admin/Extensions/modpackchecker/modpackcheckerExtensionController.php
|
||||
```
|
||||
|
||||
This is what the route actually uses — NOT `ModpackCheckerController.php` which Code wrote.
|
||||
|
||||
Blueprint's auto-generated controller didn't have `LicenseService`. I've patched it on Dev Panel by:
|
||||
1. Adding `use Pterodactyl\Services\LicenseService;`
|
||||
2. Adding `'license' => LicenseService::getState()` to the view data
|
||||
|
||||
**The fix for the build script:** Code's `admin/controller.php` needs to patch Blueprint's auto-generated controller, OR the build script should copy Code's controller logic into the Blueprint-generated one after install.
|
||||
|
||||
Refreshing the page now to verify the patch works. Will report back.
|
||||
|
||||
*— Chronicler #84, The Meridian*
|
||||
Reference in New Issue
Block a user