Merge "Return null from EditPage::importContentFormData"
[lhc/web/wiklou.git] / includes / registration / ExtensionDependencyError.php
index d380d07..5329572 100644 (file)
@@ -48,6 +48,21 @@ class ExtensionDependencyError extends Exception {
         */
        public $incompatibleCore = false;
 
+       /**
+        * @var bool
+        */
+       public $incompatiblePhp = false;
+
+       /**
+        * @var string[]
+        */
+       public $missingPhpExtensions = [];
+
+       /**
+        * @var string[]
+        */
+       public $missingAbilities = [];
+
        /**
         * @param array $errors Each error has a 'msg' and 'type' key at minimum
         */
@@ -59,6 +74,15 @@ class ExtensionDependencyError extends Exception {
                                case 'incompatible-core':
                                        $this->incompatibleCore = true;
                                        break;
+                               case 'incompatible-php':
+                                       $this->incompatiblePhp = true;
+                                       break;
+                               case 'missing-phpExtension':
+                                       $this->missingPhpExtensions[] = $info['missing'];
+                                       break;
+                               case 'missing-ability':
+                                       $this->missingAbilities[] = $info['missing'];
+                                       break;
                                case 'missing-skins':
                                        $this->missingSkins[] = $info['missing'];
                                        break;