feat: add PhpManagerService to handle PHP version discovery, installation tracking, and extension management
This commit is contained in:
@@ -191,7 +191,6 @@ export class PhpManagerService {
|
||||
const content = fs.readFileSync(iniPath, 'utf8')
|
||||
const lines = content.split(/\r?\n/)
|
||||
const essentialExts = ['openssl', 'curl', 'mbstring', 'fileinfo', 'zip', 'gd', 'pdo_mysql', 'mysqli']
|
||||
let changed = false
|
||||
|
||||
for (const ext of extensions) {
|
||||
// Check if already enabled
|
||||
@@ -202,7 +201,6 @@ export class PhpManagerService {
|
||||
if (!ext.enabled && essentialExts.includes(ext.name.toLowerCase())) {
|
||||
await this.toggleExtension(version, ext.name, true)
|
||||
ext.enabled = true
|
||||
changed = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user