import { PhpFrameworkAdapter } from './phpBase.js'; export class CodeIgniterAdapter extends PhpFrameworkAdapter { kind = 'codeigniter'; label = 'CodeIgniter 4'; devCommand() { return { command: 'php', args: ['spark', 'serve'], cwd: this.root }; } buildCommand() { // CodeIgniter has no dedicated production-build step beyond a lean install; // callers that need config/route caching should extend this via `spark`. return { command: 'composer', args: ['install', '--no-dev', '--optimize-autoloader'], cwd: this.root }; } readyPattern() { // `php spark serve` prints: "CodeIgniter development server started on http://localhost:8080" return /CodeIgniter development server started on (https?:\/\/\S+)/i; } describe() { return { kind: this.kind, label: this.label, root: this.root, packageManager: this.packageManager, codeigniterVersion: this.composerJson?.require?.['codeigniter4/framework'] ?? null, devUrl: 'http://localhost:8080', }; } } //# sourceMappingURL=codeigniter.js.map