public object GetConfigIssues() { PHPConfigHelper configHelper = new PHPConfigHelper(ManagementUnit); RemoteObjectCollection<PHPConfigIssue> configIssues = configHelper.ValidateConfiguration(); return (configIssues != null) ? configIssues.GetData() : null; }
public object GetConfigIssues() { RemoteObjectCollection<PHPConfigIssue> configIssues = null; try { PHPConfigHelper configHelper = new PHPConfigHelper(ManagementUnit); configIssues = configHelper.ValidateConfiguration(); } catch (FileNotFoundException) { RaiseException("ErrorPHPIniNotFound"); } return (configIssues != null) ? configIssues.GetData() : null; }
public object GetConfigIssues() { RemoteObjectCollection<PHPConfigIssue> configIssues = null; try { var mgmtUnitWrapper = new ManagementUnitWrapper(ManagementUnit); var configHelper = new PHPConfigHelper(mgmtUnitWrapper); configIssues = configHelper.ValidateConfiguration(); } catch (FileNotFoundException) { RaiseException("ErrorPHPIniNotFound"); } catch (InvalidOperationException) { RaiseException("ErrorPHPIsNotRegistered"); } return (configIssues != null) ? configIssues.GetData() : null; }