Exemplo n.º 1
0
        public object GetConfigIssues()
        {
            PHPConfigHelper configHelper = new PHPConfigHelper(ManagementUnit);
            RemoteObjectCollection<PHPConfigIssue> configIssues = configHelper.ValidateConfiguration();

            return (configIssues != null) ? configIssues.GetData() : null;
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        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;
        }