Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Option.php')
-rw-r--r--core/Option.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/Option.php b/core/Option.php
index d50e5c4235..d79df967ed 100644
--- a/core/Option.php
+++ b/core/Option.php
@@ -144,6 +144,17 @@ class Option
}
/**
+ * Sets the singleton instance. For testing purposes.
+ *
+ * @param mixed
+ * @ignore
+ */
+ public static function setSingletonInstance($instance)
+ {
+ self::$instance = $instance;
+ }
+
+ /**
* Private Constructor
*/
private function __construct()