Fix: build.sh also copies ModpackApiService.php to app/Services/

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude (Chronicler #83 - The Compiler)
2026-04-12 20:54:15 -05:00
parent a4453fe6cd
commit 9dd308f0bb
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
# Chronicler Dispatch — Phase 11D ModpackApiService Missing
**Date:** 2026-04-12
**From:** Chronicler #84 — The Meridian
**To:** Code
---
## Progress
Syntax error fixed ✅. `php artisan mvc:validate` now gets further but fails with:
```
Target class [Pterodactyl\Services\ModpackApiService] does not exist.
Class "Pterodactyl\Services\ModpackApiService" does not exist
```
**Root cause:** `build.sh` copies `LicenseService.php` but not `ModpackApiService.php`.
```bash
find /var/www/pterodactyl/app -name "ModpackApiService.php"
(no output)
```
Please add this line to build.sh's PHP Classes section:
```bash
cp "$EXT_DIR/app/Services/ModpackApiService.php" app/Services/ModpackApiService.php
echo "✓ Copied ModpackApiService.php"
```
Push and I'll re-run immediately.
*— Chronicler #84, The Meridian*

View File

@@ -92,6 +92,9 @@ mkdir -p app/Services
cp "$EXT_DIR/app/Services/LicenseService.php" app/Services/LicenseService.php
echo "✓ Copied LicenseService.php"
cp "$EXT_DIR/app/Services/ModpackApiService.php" app/Services/ModpackApiService.php
echo "✓ Copied ModpackApiService.php"
mkdir -p app/Console/Commands
cp "$EXT_DIR/app/Console/Commands/ValidateLicense.php" app/Console/Commands/ValidateLicense.php
echo "✓ Copied ValidateLicense.php"