diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-02-02 19:25:35 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-02-02 19:25:35 +0000 |
commit | 6f7316e4216a19c5b8957a0f397d3aff1919f1f7 (patch) | |
tree | ecbb6a396f4196f1a5e8b44e9bc666094ed45f7b | |
parent | a4e1a291ed02c5641937fd912b50b91f8048ab52 (diff) | |
download | semanticscuttle-6f7316e4216a19c5b8957a0f397d3aff1919f1f7.tar.gz semanticscuttle-6f7316e4216a19c5b8957a0f397d3aff1919f1f7.tar.bz2 |
make serviceoverrides user-configurable
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@626 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r-- | src/SemanticScuttle/Service/Factory.php | 2 | ||||
-rw-r--r-- | src/SemanticScuttle/header.php | 4 |
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 |