APIv4 - Add Address::getCoordinates action
[civicrm-core.git] / CRM / Extension / System.php
index 863da23513df301aa9d0fe88495418e2c962182d..e27d93fe1dc5b80762e3b0af5c1450d406b53243 100644 (file)
@@ -26,6 +26,7 @@ class CRM_Extension_System {
   private $manager = NULL;
   private $browser = NULL;
   private $downloader = NULL;
+  private $mixinLoader = NULL;
 
   /**
    * @var CRM_Extension_ClassLoader
@@ -243,9 +244,14 @@ class CRM_Extension_System {
     return $this->downloader;
   }
 
-  public function applyMixins($force = FALSE) {
-    $mixinLoader = new CRM_Extension_MixinLoader();
-    $mixinLoader->run($force);
+  /**
+   * @return CRM_Extension_MixinLoader;
+   */
+  public function getMixinLoader() {
+    if ($this->mixinLoader === NULL) {
+      $this->mixinLoader = new CRM_Extension_MixinLoader();
+    }
+    return $this->mixinLoader;
   }
 
   /**