From 6f7316e4216a19c5b8957a0f397d3aff1919f1f7 Mon Sep 17 00:00:00 2001 From: cweiske Date: Tue, 2 Feb 2010 19:25:35 +0000 Subject: make serviceoverrides user-configurable git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@626 b3834d28-1941-0410-a4f8-b48e95affb8f --- src/SemanticScuttle/Service/Factory.php | 2 +- src/SemanticScuttle/header.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3