feat: add PHP INI editor component, extension manager UI, and Nginx IPC service handlers
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user