feat: add PHP INI editor component, extension manager UI, and Nginx IPC service handlers

This commit is contained in:
Ümit Tunç
2026-03-30 16:51:16 +03:00
parent f4cff4ac68
commit 8d687a159f
3 changed files with 159 additions and 26 deletions
+5 -2
View File
@@ -389,9 +389,12 @@ export function registerIpcHandlers(): void {
const phpDir = path.join(configService.getBasePath(), 'bin', `php-${version}`)
const iniPath = path.join(phpDir, 'php.ini')
if (fs.existsSync(iniPath)) {
return fs.readFileSync(iniPath, 'utf8')
return {
content: fs.readFileSync(iniPath, 'utf8'),
path: iniPath
}
}
return ''
return { content: '', path: iniPath }
})
ipcMain.handle('php:config:save', async (_event, { version, content }) => {