summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/SemanticScuttle/Service/Factory.php2
-rw-r--r--src/SemanticScuttle/header.php4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/SemanticScuttle/Service/Factory.php b/src/SemanticScuttle/Service/Factory.php
index a073251..9b79e6c 100644
--- a/src/SemanticScuttle/Service/Factory.php
+++ b/src/SemanticScuttle/Service/Factory.php
@@ -51,7 +51,7 @@ class SemanticScuttle_Service_Factory
*
* @var array
*/
- protected static $serviceoverrides = array();
+ public static $serviceoverrides = array();
diff --git a/src/SemanticScuttle/header.php b/src/SemanticScuttle/header.php
index 4a0a919..4ad869d 100644
--- a/src/SemanticScuttle/header.php
+++ b/src/SemanticScuttle/header.php
@@ -57,6 +57,10 @@ require_once 'SemanticScuttle/DbService.php';
require_once 'SemanticScuttle/Service/Factory.php';
require_once 'SemanticScuttle/functions.php';
+if (count($GLOBALS['serviceoverrides']) > 0) {
+ SemanticScuttle_Service_Factory::$serviceoverrides
+ = $GLOBALS['serviceoverrides'];
+}
// 3 // Third requirements part which import functions from includes/ directory