Merge pull request #22086 from civicrm/5.44
[civicrm-core.git] / CRM / Extension / Info.php
index 55e379caf7fd7c4fec2b9b4b334e13f1c75014d8..8b8ee51143794cc307561b1101f4036bf823c3c7 100644 (file)
@@ -65,6 +65,13 @@ class CRM_Extension_Info {
    */
   public $maintainer = NULL;
 
+  /**
+   * @var string|null
+   *  The name of a class which handles the install/upgrade lifecycle.
+   * @see \CRM_Extension_Upgrader_Interface
+   */
+  public $upgrader = NULL;
+
   /**
    * Load extension info an XML file.
    *
@@ -150,6 +157,7 @@ class CRM_Extension_Info {
     $this->type = (string) $info->attributes()->type;
     $this->file = (string) $info->file;
     $this->label = (string) $info->name;
+    $this->upgrader = (string) $info->upgrader;
 
     // Convert first level variables to CRM_Core_Extension properties
     // and deeper into arrays. An exception for URLS section, since